Ejemplo n.º 1
0
 public void TestUserListCreation()
 {
     User us = new User();
     Assert.IsTrue(us.FindAll().Count<User>() > 0);
     var entry = from user in us.FindAll()
                  where user.ID == 1
                  select user;
     Assert.IsNotNull(entry);
     foreach (User user in entry)
     {
         Assert.IsTrue(user.ID == 1);
         Assert.IsTrue(user.FirstName == "John");
     }
 }
Ejemplo n.º 2
0
 public UserViewModel()
 {
     User us = new User(); //Get the data loaded
     this.users = us.FindAll();
 }