public void Register_New() { string serviceBaseUrl = _serviceBaseUrl; MembershipServiceClientProxy target = new MembershipServiceClientProxy(serviceBaseUrl); RegisterRequest registerReq = new RegisterRequest { Birthdate = DateTime.Now.ToString(), ConfirmPassword = "******", Password = "******", Email = "ta.com", Firstname = "Alfonzo", Gender = "M", Lastname = "Petrucci" }; RegisterResponse actual = target.Register(registerReq); }
public void LoginTest() { MembershipServiceClientProxy target = new MembershipServiceClientProxy(_serviceBaseUrl); LoginRequest loginReq = new LoginRequest { Email = "*****@*****.**", Password = "******" }; LoginResponse actual = target.Login(loginReq); Assert.IsTrue(actual.Success); }
public void Register_With_Existing_Email_Returns_EmailAlreadyExistsErrorMessage() { string serviceBaseUrl = _serviceBaseUrl; MembershipServiceClientProxy target = new MembershipServiceClientProxy(serviceBaseUrl); RegisterRequest registerReq = new RegisterRequest { Birthdate = DateTime.Now.ToString(), ConfirmPassword = "******", Password = "******", Email = "*****@*****.**", Firstname = "Test2", Gender = "F", Lastname = "Test2" }; //RegisterRequest registerReq = new RegisterRequest(); RegisterResponse actual = target.Register(registerReq); }