C# 클래스 PaulStovell.TrialBalance.DomainModel.UniqueAccountNameRule

A rule that is applied to an account to ensure that account names are always unique.
상속: Rule
파일 보기 프로젝트 열기: PaulStovell/trial-balance

공개 메소드들

메소드 설명
UniqueAccountNameRule ( Workbook workbook, Account account ) : System

Constructor.

ValidateRule ( DomainObject domainObject ) : bool

Validates that the rule has been followed.

메소드 상세

UniqueAccountNameRule() 공개 메소드

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

ValidateRule() 공개 메소드

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