C# Class Dev2.Tests.Runtime.WebServer.Security.AuthorizeHubAttributeTests

Datei anzeigen Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
CreateHubIncomingInvokerContext ( bool isAuthenticated, string methodName, string hubName = null ) : IHubIncomingInvokerContext
CreateRequest ( bool isAuthenticated ) : Mock

Private Methods

Method Description
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

Method Details

CreateHubIncomingInvokerContext() public static method

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

CreateRequest() public static method

public static CreateRequest ( bool isAuthenticated ) : Mock
isAuthenticated bool
return Mock