Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void CreatePersonForUserTest()
 {
     UserRepository target = new UserRepository();
     Guid id = Guid.Parse("F543E678-E37F-46EC-8B95-E22B651D866F");
     target.CreatePersonForUser(id, "XXX");
 }
Ejemplo n.º 3
0
 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);
 }