Пример #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);
     }
 }