Ejemplo n.º 1
0
 void AssertUser(UserObject user)
 {
    Assert.AreEqual(id, user.Id);
    Assert.IsTrue(user.IsActive);
    Assert.AreEqual(LOGIN, user.Login);
    Assert.AreEqual(PASS_HASH, user.PasswordHash);
    Assert.AreEqual(PASS_EXP, user.PasswordExpires);
    Assert.AreEqual(FIRST_NAME, user.FirstName);
    Assert.AreEqual(LAST_NAME, user.LastName);
    Assert.AreEqual(MIDDLE_NAME, user.MiddleName);
    Assert.IsTrue(user.Undeletable);
 }
Ejemplo n.º 2
0
      public void TestUserObjectCopyConstructor()
      {
         UserObject user = new UserObject(SetupMock());

         AssertUser(user);
      }