public void ValidateUserTestInvalid() { UserRepository target = new UserRepository(); string userName = "******"; string password = "******"; bool expected = false; bool actual; actual = target.ValidateUser(userName, password); Assert.AreEqual(expected, actual); }
public void CreatePersonForUserTest() { UserRepository target = new UserRepository(); Guid id = Guid.Parse("F543E678-E37F-46EC-8B95-E22B651D866F"); target.CreatePersonForUser(id, "XXX"); }
public void CreateUserAndPersonTest() { UserRepository target = new UserRepository(); ShortProfile profile = new ShortProfile() { FirstName = "sword", LastName = "fish", UserName = "******", RecoveryEmail = "*****@*****.**", SponsorCode = "XXX", PersonGUID = Guid.Parse("180F39D4-5F7B-4F11-8DF3-CAF135FDCA6A") }; target.CreateUserAndPerson(profile); Assert.IsTrue(profile.PersonID > 0); }