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); }
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); }
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); }