//Test to get all users to return all users public void ShouldReturnAllUsers() { List <UserEntity> userList = _mockRepository.GetAllUsers(); Assert.IsTrue(userList.Count() == 5); Assert.IsTrue(userList.ElementAt(0).UserId == 1); Assert.IsTrue(userList.ElementAt(1).FirstName == "Raja"); Assert.IsTrue(userList.ElementAt(1).LastName == "Suresh"); Assert.IsTrue(userList.ElementAt(3).UserStatus == "Y"); Assert.IsTrue(userList.ElementAt(3).EmpId == 101134); }
public List <UserEntity> GetAllUsers() { return(_projDL.GetAllUsers()); }