C# Class Dev2.Core.Tests.ResourceModelTest

显示文件 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
CreateMockEnvironment ( ) : Mock
CreateMockEnvironment ( IEventPublisher eventPublisher ) : Mock
MakeMessage ( string msg ) : ExecuteMessage

Private Methods

Method Description
CreateResourceModel ( string resourceDefintion = "resource xaml" ) : ResourceModel
Init ( ) : void
ResourceModel_Authorization_IsAuthorized_IsCorrectForAllPermissions ( ) : void
ResourceModel_ClearErrors_ClearsErrors ( ) : void
ResourceModel_ClearErrors_FiresPropertyChangeFoIsValid ( ) : void
ResourceModel_ClearErrors_FiresPropertyChangeForErrors ( ) : void
ResourceModel_Commit_FixedErrorsNotRestored ( ) : void
ResourceModel_Constructor_IsWorkflowSaved ( ) : void
ResourceModel_DataListPropertyWhereChangedToSameString_NotifyPropertyChangedNotFiredTwice ( ) : void
ResourceModel_DataList_Setter_UpdatedDataListSectionInServiceDefinition ( ) : void
ResourceModel_DesignValidationServicePublishingMemo_NoInstanceID_DoesNotUpdatesErrors ( ) : void
ResourceModel_DesignValidationServicePublishingMemo_UpdatesErrors ( ) : void
ResourceModel_DisplayName_IsNullOrEmptyAndResourceTypeIsNotWorkflowService_ResourceTypeToString ( ) : void
ResourceModel_DisplayName_IsNullOrEmptyAndResourceTypeIsWorkflowService_Workflow ( ) : void
ResourceModel_Environment_DesignValidationService_WiredUp ( ) : void
ResourceModel_GetErrors_ErrorsForInstance ( ) : void
ResourceModel_IDataErrorInfo_ThisAccessor_HelpLink ( ) : void
ResourceModel_IDataErrorInfo_ThisAccessor_IconPath ( ) : void
ResourceModel_IDataErrorInfo_ThisAccessor_ResourceName ( ) : void
ResourceModel_OnWorkflowSaved_IsWorkflowchangedWherePropertyUpdated_FireOnWorkflowSaved ( ) : void
ResourceModel_RemoveError_ErrorIsFound_ErrorRemoved ( ) : void
ResourceModel_RemoveError_ErrorIsNotFoundButErrorExistsWithSameErrorAndFixType_MatchingErrorRemoved ( ) : void
ResourceModel_RemoveError_ErrorIsNotFound_DoesNothing ( ) : void
ResourceModel_Rollback_FixedErrorsRestored ( ) : void
ResourceModel_ToServiceDefinition_GivenHasMoreThanOneError_ThenThereShouldBeTwoErrorElements ( ) : void
ResourceModel_ToServiceDefinition_GivenXamlNull_ExpectFetchOfXaml ( ) : void
ResourceModel_ToServiceDefinition_GivenXamlPresent_ExpectExistingXamlUsed ( ) : void
ResourceModel_ToServiceDefinition_InvalidResourceType_ThrowsException ( ) : void
ResourceModel_ToServiceDefinition_WhenServiceType_ShouldHaveFullServiceDefinition ( ) : void
ResourceModel_ToServiceDefinition_WhenSourceType_ShouldHaveFullServiceDefinition ( ) : void
ResourceModel_ToServiceDefinition_Workflow_WhenHasAnAmpersand_ShouldHaveServiceDefinition ( ) : void
ResourceModel_UpdateResourceModelExpectPropertiesUpdated ( ) : void
ResourceModel_Update_WhenWorkflowXamlChanged_ExpectUpdatedResourceModelWithNewXaml ( ) : void
Setup ( ) : void
Verify_Authorization_IsAuthorized ( AuthorizationContext authorizationContext ) : void
Verify_ToServiceDefinition_GivenXamlNull ( ResourceType resourceType ) : void
Verify_ToServiceDefinition_GivenXamlPresent ( ResourceType resourceType, string category, string workflowXaml, bool hasWorkflowXaml, Action verify ) : void

Method Details

CreateMockEnvironment() public static method

public static CreateMockEnvironment ( ) : Mock
return Mock

CreateMockEnvironment() public static method

public static CreateMockEnvironment ( IEventPublisher eventPublisher ) : Mock
eventPublisher IEventPublisher
return Mock

MakeMessage() public static method

public static MakeMessage ( string msg ) : ExecuteMessage
msg string
return Dev2.Communication.ExecuteMessage