Esempio n. 1
0
        public void Get_All_Users()
        {
            List <UserEntity> users = _mockRepository.GetAllUsers();

            Assert.IsTrue(users.Count() == 3);
            Assert.IsTrue(users.ElementAt(1).FirstName == "Suresh");
            Assert.IsTrue(users.ElementAt(0).LastName == "Ganesan");
            Assert.IsTrue(users.ElementAt(2).EmployeeId == 8796556);
            Assert.IsTrue(users.ElementAt(0).FirstName == "Uthaya Kumar");
        }
Esempio n. 2
0
        public void Get_All_Users()
        {
            List <UserEntity> users = _mockRepository.GetAllUsers();

            Assert.IsTrue(users.Count() == 3);
            Assert.IsTrue(users.ElementAt(1).FirstName == "Testing");
            Assert.IsTrue(users.ElementAt(0).LastName == "User1");
            Assert.IsTrue(users.ElementAt(2).EmployeeId == 1234569);
            Assert.IsTrue(users.ElementAt(0).FirstName == "Test");
        }
Esempio n. 3
0
 public List <UserEntity> GetAllUsers()
 {
     return(_repo.GetAllUsers());
 }
Esempio n. 4
0
 public IEnumerable<User> GetAllUsers()
 {
     return _userDataLayer.GetAllUsers();
 }