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
        private RegisterService GetRegistrationService()
        {
            var registrationService = RegistrationServiceTests.GetRegistrationService(authRepo: userAuth);
            var request             = RegistrationServiceTests.GetValidRegistration(autoLogin: true);

            registrationService.Post(request);
            return(registrationService);
        }
Example #2
0
        private RegistrationService GetRegistrationService()
        {
            var registrationService = RegistrationServiceTests.GetRegistrationService(authRepo: userAuthMock.Object);
            var request             = RegistrationServiceTests.GetValidRegistration(autoLogin: true);

            registrationService.Execute(request);
            return(registrationService);
        }