C# Class PaulStovell.TrialBalance.DomainModel.UniqueAccountNameRule

A rule that is applied to an account to ensure that account names are always unique.
Inheritance: Rule
ファイルを表示 Open project: PaulStovell/trial-balance

Public Methods

Method Description
UniqueAccountNameRule ( Workbook workbook, Account account ) : System

Constructor.

ValidateRule ( DomainObject domainObject ) : bool

Validates that the rule has been followed.

Method Details

UniqueAccountNameRule() public method

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

ValidateRule() public method

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