C# Класс PaulStovell.TrialBalance.DomainModel.UniqueAccountNameRule

A rule that is applied to an account to ensure that account names are always unique.
Наследование: Rule
Показать файл Открыть проект

Открытые методы

Метод Описание
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