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

Afficher le fichier Open project: ServiceStack/ServiceStack Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode 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 méthode

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

GetStubRepo() public static méthode

public static GetStubRepo ( ) : IUserAuthRepository
Résultat IUserAuthRepository

GetValidRegistration() public static méthode

public static GetValidRegistration ( bool autoLogin = false ) : Register
autoLogin bool
Résultat Register