C# 클래스 Habanero.Testability.ValidValueGeneratorDate

Generates a valid value for PropDef of type DateTime.
상속: ValidValueGenerator, IValidValueGeneratorNumeric
파일 보기 프로젝트 열기: Chillisoft/habanero.testability 1 사용 예제들

공개 메소드들

메소드 설명
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