예제 #1
0
 protected static void AssertEqual(User user, DifferentCaseUser partial)
 {
     Assert.IsNotNull(partial);
     Assert.AreEqual(user.Id, partial.ID);
     Assert.AreEqual(user.DateOfBirth, partial.Dateofbirth);
     Assert.AreEqual(user.FirstName, partial.Firstname);
     Assert.AreEqual(user.LastName, partial.Lastname);
     Assert.AreEqual(default(DateTime), partial.Lastmodified);
 }
예제 #2
0
 public void AutoMap_Populate_NoCaseMatch()
 {
     AutoMap<User, DifferentCaseUser> map = new AutoMap<User, DifferentCaseUser>().Matching<ExactNameMatchingStrategy>();
     User user = GetFullUser();
     DifferentCaseUser partial = new DifferentCaseUser();
     map.Populate(user, partial);
     AssertNotEqual(user, partial);
 }
예제 #3
0
 private static void AssertNotEqual(User user, DifferentCaseUser partial)
 {
     Assert.IsNotNull(partial);
     Assert.AreNotEqual(user.Id, partial.ID);
     Assert.AreNotEqual(user.FirstName, partial.Firstname);
     Assert.AreNotEqual(user.LastName, partial.Lastname);
     Assert.AreNotEqual(user.DateOfBirth, partial.Dateofbirth);
 }