示例#1
0
 public void CreateTarget_ClassSource()
 {
     User user = GetFullUser();
     var map = new UserToUserModelMap();
     UserModel model = map.Create(user);
     AssertEqual(user, model);
 }
示例#2
0
        public void CreateTarget_ClassSource()
        {
            User      user  = GetFullUser();
            var       map   = new UserToUserModelMap();
            UserModel model = map.Create(user);

            AssertEqual(user, model);
        }
示例#3
0
        public void UserToUserModel_StaticMap()
        {
            var map = new UserToUserModelMap();

            for (int i = 0; i < PerformanceIterations; i++)
            {
                User      user    = GetFullUser();
                UserModel partial = map.Create(user);
                AssertEqual(user, partial);
            }
        }
示例#4
0
 public void UserToUserModel_StaticMap()
 {
     var map = new UserToUserModelMap();
     for (int i = 0; i < PerformanceIterations; i++)
     {
         User user = GetFullUser();
         UserModel partial = map.Create(user);
         AssertEqual(user, partial);
     }
 }