C# 클래스 Dev2.Tests.Runtime.WebServer.Security.AuthorizeHubAttributeTests

파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

공개 메소드들

메소드 설명
CreateHubIncomingInvokerContext ( bool isAuthenticated, string methodName, string hubName = null ) : IHubIncomingInvokerContext
CreateRequest ( bool isAuthenticated ) : Mock

비공개 메소드들

메소드 설명
AuthorizeHubAttribute_AuthorizeHubConnection_HubDescriptorIsNull_ThrowsArgumentNullException ( ) : void
AuthorizeHubAttribute_AuthorizeHubConnection_RequestIsNull_ThrowsArgumentNullException ( ) : void
AuthorizeHubAttribute_AuthorizeHubConnection_UserIsAuthenticatedAndAuthorized_ResponseIsTrue ( ) : void
AuthorizeHubAttribute_AuthorizeHubConnection_UserIsAuthenticatedAndNotAuthorized_ResponseIsFalse ( ) : void
AuthorizeHubAttribute_AuthorizeHubConnection_UserIsNotAuthenticated_ResponseIsFalse ( ) : void
AuthorizeHubAttribute_AuthorizeHubMethodInvocation_HubIncomingInvokerContextIsNull_ThrowsArgumentNullException ( ) : void
AuthorizeHubAttribute_AuthorizeHubMethodInvocation_UserIsAuthenticatedAndAuthorized_ResponseIsTrue ( ) : void
AuthorizeHubAttribute_AuthorizeHubMethodInvocation_UserIsAuthenticatedAndNotAuthorized_ResponseIsFalse ( ) : void
AuthorizeHubAttribute_AuthorizeHubMethodInvocation_UserIsNotAuthenticated_ResponseIsFalse ( ) : void
AuthorizeHubAttribute_Constructor_AuthorizationProviderIsNull_ThrowsArgumentNullException ( ) : void
AuthorizeHubAttribute_Constructor_Default_ProviderIsAuthorizationProviderInstance ( ) : void
Verify_AuthorizeHubConnection ( bool isAuthenticated, bool isAuthorized ) : void
Verify_AuthorizeHubMethodInvocation ( bool isAuthenticated, bool isAuthorized, string methodName = null ) : void

메소드 상세

CreateHubIncomingInvokerContext() 공개 정적인 메소드

public static CreateHubIncomingInvokerContext ( bool isAuthenticated, string methodName, string hubName = null ) : IHubIncomingInvokerContext
isAuthenticated bool
methodName string
hubName string
리턴 IHubIncomingInvokerContext

CreateRequest() 공개 정적인 메소드

public static CreateRequest ( bool isAuthenticated ) : Mock
isAuthenticated bool
리턴 Mock