C# Class PaulStovell.TrialBalance.DomainModel.UniqueAccountNameRule

A rule that is applied to an account to ensure that account names are always unique.
Inheritance: Rule
Afficher le fichier Open project: PaulStovell/trial-balance

Méthodes publiques

Méthode Description
UniqueAccountNameRule ( Workbook workbook, Account account ) : System

Constructor.

ValidateRule ( DomainObject domainObject ) : bool

Validates that the rule has been followed.

Method Details

UniqueAccountNameRule() public méthode

Constructor.
public UniqueAccountNameRule ( Workbook workbook, Account account ) : System
workbook Workbook The workbook to search for the name.
account Account The account to validate.
Résultat System

ValidateRule() public méthode

Validates that the rule has been followed.
public ValidateRule ( DomainObject domainObject ) : bool
domainObject DomainObject The domain object to validate.
Résultat bool