C# Class Habanero.Faces.Test.Base.TestBOEditorControl

Datei anzeigen Open project: Chillisoft/habanero.faces Class Usage Examples

Protected Methods

Method Description
CreateControlFactory ( ) : IControlFactory
CreateEditorControl ( IClassDef classDef ) : IBOPanelEditorControl
CreateEditorControl ( IControlFactory controlFactory, IClassDef def, string uiDefName ) : IBOPanelEditorControl
GetControlFactory ( ) : IControlFactory
GetCustomClassDef ( ) : IClassDef

Private Methods

Method Description
AssertControlsAreDisabled ( IBusinessObjectPanel controlWin ) : void
AssertControlsAreEnabled ( IBusinessObjectPanel controlWin ) : void
AssertErrorProviderHasErrors ( IBusinessObjectPanel controlWin, string propertyName ) : void
AssertErrorProvidersHaveBeenCleared ( IBusinessObjectPanel controlWin ) : void
SetSurnameTextBoxToNull ( IBusinessObjectPanel controlWin ) : void
TestConstructor_DefaultUIDef_NoControlFactory ( ) : void
TestConstructor_NullClassDef_ShouldRaiseError ( ) : void
TestConstructor_NullControlFactory_ShouldRaiseError ( ) : void
TestConstructor_NullUIDef_ShouldRaiseError ( ) : void
TestConstructor_uiDefDoesNotHaveAUIForm_ShouldRaiseError ( ) : void
TestFixtureSetup ( ) : void
Test_ApplyChangesToBo_WhenControlIsEdited_ShouldUpdateTheBusinessObject ( ) : void
Test_HasErrors_WhenBOInvalid_ShouldBeTrue ( ) : void
Test_HasErrors_WhenBONull_ShouldBeFalse ( ) : void
Test_HasErrors_WhenBOValid_ButCompulsorytFieldSetToNull_ShouldBeTrue ( ) : void
Test_HasErrors_WhenBOValid_ShouldBeFalse ( ) : void
Test_IfInvalidState_WhenSetBOToNull_ShouldClearErrorProviders ( ) : void
Test_IfInvalidState_WhenSetBOToValidBo_ShouldClearErrorProviders ( ) : void
Test_IfValidState_WhenSetControlValueToInvalidValue_ShouldUpdatesErrorProviders ( ) : void
Test_IsDirty_WhenBONull_ShouldBeFalse ( ) : void
Test_IsDirty_WhenControlIsEdited_ShouldBeTrue ( ) : void
Test_IsDirty_WhenNoEditsDone_ShouldBeFalse ( ) : void
Test_SetBusinessObject_Null ( ) : void
Test_WhenSetBOInInvalidState_SetsErrorProviders ( ) : void
Test_setBusinessObject_ChangesBOInBOControl ( ) : void

Method Details

CreateControlFactory() protected abstract method

protected abstract CreateControlFactory ( ) : IControlFactory
return IControlFactory

CreateEditorControl() protected abstract method

protected abstract CreateEditorControl ( IClassDef classDef ) : IBOPanelEditorControl
classDef IClassDef
return IBOPanelEditorControl

CreateEditorControl() protected abstract method

protected abstract CreateEditorControl ( IControlFactory controlFactory, IClassDef def, string uiDefName ) : IBOPanelEditorControl
controlFactory IControlFactory
def IClassDef
uiDefName string
return IBOPanelEditorControl

GetControlFactory() protected method

protected GetControlFactory ( ) : IControlFactory
return IControlFactory

GetCustomClassDef() protected static method

protected static GetCustomClassDef ( ) : IClassDef
return IClassDef