C# Class Dev2.Core.Tests.DebugOutputViewModelTest

显示文件 Open project: Warewolf-ESB/Warewolf

Public Properties

Property Type Description
_popupController Mock

Public Methods

Method Description
CreateMockConnection ( Random rand ) : Mock
CreateMockEnvironment ( ) : Mock
CreateResource ( ResourceType resourceType ) : Mock
DebugOutputViewModel_Append_ContentIsDebugState ( System.Guid contentID, System.Guid contentParentID, string displayName ) : void
DebugOutputViewModel_Append_ContentIsDebugStateErrors ( bool parentContentHasErrors, bool childContentHasErrors ) : void
GetEnvironmentRepository ( ) : IEnvironmentRepository
GetMockSecurityContext ( ) : Mock
GetworkspaceItemRespository ( ) : Mock

Private Methods

Method Description
AddAdditionalContext ( ) : void
ClassInitialize ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext ) : void
CreateEnvironmentModel ( ) : void
CreateFullExportsAndVm ( ) : void
DebugOutputDisplayedExpectsDisplayedToCorrectViewModel ( ) : void
DebugOutputViewModelAppendErrorExpectErrorMessageAppende ( ) : void
DebugOutputViewModelAppendNestedDebugstatesExpectNestedInRootItems ( ) : void
DebugOutputViewModelCanOpenNonNullOrEmptyMoreLinkLineItem ( ) : void
DebugOutputViewModelCantOpenEmptyMoreLinkLineItem ( ) : void
DebugOutputViewModelCantOpenNullMoreLinkLineItem ( ) : void
DebugOutputViewModelPendingQueueExpectedQueuesMessagesAndFlushesWhenFinishedProcessing ( ) : void
DebugOutputViewModel_Append_ContentIsDebugStateAndIDDoesEqualParentID_ItemAddedAtRootAndIsNotExpanded ( ) : void
DebugOutputViewModel_Append_ContentIsDebugStateAndParentIDIsEmpty_ItemAddedAtRootAndIsNotExpanded ( ) : void
DebugOutputViewModel_Append_ContentIsDebugStateWithErrors_ItemAddedWithErrors ( ) : void
DebugOutputViewModel_Append_ContentIsDebugStateWithoutErrors_ItemAddedWithoutErrors ( ) : void
DebugOutputViewModel_Append_ContentStateType ( StateType stateType, Type expectedType, bool isExpanded ) : void
DebugOutputViewModel_Append_ContentStateTypeIsMessage_StringTreeViewItemAdded ( ) : void
DebugOutputViewModel_Append_ContentStateTypeIsNotMessage_StateTreeViewItemAdded ( ) : void
DebugOutputViewModel_Append_ItemHasSameID_ShouldAddAsNewItemIntoTree ( ) : void
DebugOutputViewModel_Append_ItemRemoteHasNoPermission_ShouldNotAddAsNewItemIntoTree ( ) : void
DebugOutputViewModel_Append_NullContent_NotAdded ( ) : void
DebugOutputViewModel_Append_SearchText ( string searchText, string contentText, bool isAdded ) : void
DebugOutputViewModel_Append_SearchTextDoesMatchContent_Added ( ) : void
DebugOutputViewModel_Append_SearchTextDoesNotMatchContent_NotAdded ( ) : void
DebugOutputViewModel_Append_SearchTextIsEmpty_Added ( ) : void
DebugOutputViewModel_Append_SearchTextIsNull_Added ( ) : void
DebugOutputViewModel_Append_SearchTextIsWhiteSpace_Added ( ) : void
DebugOutputViewModel_Append_TypeIsEndAndNotLastStep_NothingAppended ( ) : void
DebugOutputViewModel_Append_TypeIsStartAndNotFirstStep_NothingAppended ( ) : void
OpenEmptyMoreLinkDoesntStartProcess ( ) : void
OpenNullLineItemDoesntStartProcess ( ) : void

Method Details

CreateMockConnection() public static method

public static CreateMockConnection ( Random rand ) : Mock
rand System.Random
return Mock

CreateMockEnvironment() public static method

public static CreateMockEnvironment ( ) : Mock
return Mock

CreateResource() public static method

public static CreateResource ( ResourceType resourceType ) : Mock
resourceType ResourceType
return Mock

DebugOutputViewModel_Append_ContentIsDebugState() public method

public DebugOutputViewModel_Append_ContentIsDebugState ( System.Guid contentID, System.Guid contentParentID, string displayName ) : void
contentID System.Guid
contentParentID System.Guid
displayName string
return void

DebugOutputViewModel_Append_ContentIsDebugStateErrors() public method

public DebugOutputViewModel_Append_ContentIsDebugStateErrors ( bool parentContentHasErrors, bool childContentHasErrors ) : void
parentContentHasErrors bool
childContentHasErrors bool
return void

GetEnvironmentRepository() public static method

public static GetEnvironmentRepository ( ) : IEnvironmentRepository
return IEnvironmentRepository

GetMockSecurityContext() public static method

public static GetMockSecurityContext ( ) : Mock
return Mock

GetworkspaceItemRespository() public static method

public static GetworkspaceItemRespository ( ) : Mock
return Mock

Property Details

_popupController public_oe static_oe property

public static Mock _popupController
return Mock