C# Класс Habanero.Testability.ValidValueGeneratorDate

Generates a valid value for PropDef of type DateTime.
Наследование: ValidValueGenerator, IValidValueGeneratorNumeric
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GenerateValidValue ( ) : object

Generates a valid value taking into account only the IPropRules. I.e. any InterPropRules will not be taken into account. The IValidValueGeneratorNumeric's methods are used by the BOTestFactory to create valid values taking into account InterPropRules

GenerateValidValueGreaterThan ( object minValue ) : object

Generates a Valid Value taking IPropRule and minValue into account.

GenerateValidValueLessThan ( object maxValue ) : object

Generates a Valid Value taking IPropRule and maxValue into account.

ValidValueGeneratorDate ( IPropDef propDef ) : Habanero.Base

Construct a Valid Value Generator with a PropDef

Приватные методы

Метод Описание
GenerateValidValue ( System.DateTime overridingMinValue, System.DateTime overridingMaxValue ) : System.DateTime
GetMaxValue ( IPropRuleComparable propRule, System.DateTime overridingMaxValue ) : System.DateTime
GetMinValue ( IPropRuleComparable propRule, System.DateTime overridingMinValue ) : System.DateTime

Описание методов

GenerateValidValue() публичный Метод

Generates a valid value taking into account only the IPropRules. I.e. any InterPropRules will not be taken into account. The IValidValueGeneratorNumeric's methods are used by the BOTestFactory to create valid values taking into account InterPropRules
public GenerateValidValue ( ) : object
Результат object

GenerateValidValueGreaterThan() публичный Метод

Generates a Valid Value taking IPropRule and minValue into account.
public GenerateValidValueGreaterThan ( object minValue ) : object
minValue object
Результат object

GenerateValidValueLessThan() публичный Метод

Generates a Valid Value taking IPropRule and maxValue into account.
public GenerateValidValueLessThan ( object maxValue ) : object
maxValue object
Результат object

ValidValueGeneratorDate() публичный Метод

Construct a Valid Value Generator with a PropDef
public ValidValueGeneratorDate ( IPropDef propDef ) : Habanero.Base
propDef IPropDef
Результат Habanero.Base