C# Class Habanero.Testability.ValidValueGeneratorShort

Generates a Valid Value for an Integer (int or Int32) based on the min or max value in the PropDef
Inheritance: ValidValueGenerator, IValidValueGeneratorNumeric
Exibir arquivo Open project: Chillisoft/habanero.testability

Public Methods

Method Description
GenerateValidValue ( ) : object
GenerateValidValueGreaterThan ( object minValue ) : object
GenerateValidValueLessThan ( object maxValue ) : object
ValidValueGeneratorShort ( IPropDef propDef ) : Habanero.BO

Construct

Private Methods

Method Description
GenerateValidValue ( short overridingMinValue, short overridingMaxValue ) : short
GetMaxValue ( IPropRuleComparable propRule, short overridingMaxValue ) : short
GetMinValue ( IPropRuleComparable propRule, short overridingMinValue ) : short

Method Details

GenerateValidValue() public method

public GenerateValidValue ( ) : object
return object

GenerateValidValueGreaterThan() public method

public GenerateValidValueGreaterThan ( object minValue ) : object
minValue object
return object

GenerateValidValueLessThan() public method

public GenerateValidValueLessThan ( object maxValue ) : object
maxValue object
return object

ValidValueGeneratorShort() public method

Construct
public ValidValueGeneratorShort ( IPropDef propDef ) : Habanero.BO
propDef IPropDef
return Habanero.BO