C# Class ServiceStack.Common.Tests.OAuth.RegistrationServiceTests

Show file Open project: ServiceStack/ServiceStack Class Usage Examples

Public Methods

Method Description
GetRegistrationService ( AbstractValidator validator = null, IUserAuthRepository authRepo = null, string contentType = null ) : RegisterService
GetStubRepo ( ) : IUserAuthRepository
GetValidRegistration ( bool autoLogin = false ) : Register

Private Methods

Method Description
Accepts_valid_registration ( ) : void
Empty_Registration_is_invalid ( ) : void
Empty_Registration_is_invalid_with_FullRegistrationValidator ( ) : void
PostRegistrationError ( RegisterService service, Register register ) : ServiceStack.Common.Web.HttpError
Registration_with_EmptyString_Continue_returns_RegistrationResponse ( ) : void
Registration_with_Html_ContentType_And_Continue_returns_302_with_Location ( ) : void
Registration_with_Json_ContentType_And_Continue_returns_RegistrationResponse_with_ReferrerUrl ( ) : void
Requires_unique_UserName_and_Email ( ) : void
TestFixtureSetUp ( ) : void
TestFixtureTearDown ( ) : void

Method Details

GetRegistrationService() public static method

public static GetRegistrationService ( AbstractValidator validator = null, IUserAuthRepository authRepo = null, string contentType = null ) : RegisterService
validator AbstractValidator
authRepo IUserAuthRepository
contentType string
return RegisterService

GetStubRepo() public static method

public static GetStubRepo ( ) : IUserAuthRepository
return IUserAuthRepository

GetValidRegistration() public static method

public static GetValidRegistration ( bool autoLogin = false ) : Register
autoLogin bool
return Register