C# 클래스 Habanero.Testability.BODefaultValueRegistry

This is a registry of the BOTestValues for various Properties and Single Relationships of a BusinessObject. This was creates so as to allow the Developer to BOTestFactory{TBO}.SetValueFor{TReturn} and such that when the Object is created with the BOTestFactory.CreateBusinessObject etc or updated with BOTestFactory.UpdateCompulsoryProperties this will be the value used.
파일 보기 프로젝트 열기: Chillisoft/habanero.testability

공개 메소드들

메소드 설명
IsRegistered ( string methodName ) : bool

Returns True if a value is registered with the name methodName

Register ( string methodName, object defaultValue ) : void

Registers the Default value to be used for the Method

Resolve ( string methodName ) : object

Resolves the registered BOTestFactory if one is registered. Else tries to find a Sub Class of the Generic BOTestFactory{TBO} in the App Domain and returns an instance of it. else constructs the Generic BOTestFactory{TBO}

비공개 메소드들

메소드 설명
ClearPreviousInstances ( string methodName ) : void

메소드 상세

IsRegistered() 공개 메소드

Returns True if a value is registered with the name methodName
public IsRegistered ( string methodName ) : bool
methodName string
리턴 bool

Register() 공개 메소드

Registers the Default value to be used for the Method
public Register ( string methodName, object defaultValue ) : void
methodName string
defaultValue object
리턴 void

Resolve() 공개 메소드

Resolves the registered BOTestFactory if one is registered. Else tries to find a Sub Class of the Generic BOTestFactory{TBO} in the App Domain and returns an instance of it. else constructs the Generic BOTestFactory{TBO}
public Resolve ( string methodName ) : object
methodName string
리턴 object