public string CreateUserAndAccout(User user, webpages_Membership membership) { //var retUser = _repository.CreateUser(user); //var retMem = _repository.CreateMembership(membership); //return retUser + "_" + retMem; throw new NotImplementedException(); }
public void CreateUser_add_correct_user() { User user = new User(); user.UserId = 22; user.FirstName = "Abcd"; user.LastName = "xyz"; user.UserName ="******"; UserRoleLogic.CreateUser(user); user = UserRoleLogic.GetUser(22); Assert.IsTrue(user.FirstName == "Abcd" && user.LastName == "xyz" && user.UserName == "abcd_xyz" && user.UserId == 22); }
public void CreateUser_throws_MembershipCreateUserException_if_username_null() { User user = new User(); user.UserId = 22; user.FirstName = "Abcd"; user.LastName = "xyz"; user.UserName = ""; UserRoleLogic.CreateUser(user); Assert.IsTrue(true); }
public string CreateUser(User user) { Db.Users.Add(user); int val = Db.SaveChanges(); return val.ToString(); }
public string CreateUser(User user) { //return _repository.CreateUser(user); throw new NotImplementedException(); }