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"); }
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"); }
public List <UserEntity> GetAllUsers() { return(_repo.GetAllUsers()); }
public IEnumerable<User> GetAllUsers() { return _userDataLayer.GetAllUsers(); }