Exemple #1
0
        //Test Get User to return single user details
        public void ShouldReturnSingleUser()
        {
            var userId = 3;

            UserEntity userDetail = _mockRepository.GetUser(userId);

            Assert.IsNotNull(userDetail);
            Assert.IsTrue(userDetail.FirstName == "Sanjay");
            Assert.IsTrue(userDetail.LastName == "Vikram");
            Assert.IsTrue(userDetail.EmpId == 101133);
            Assert.IsTrue(userDetail.UserStatus == "Y");
        }
 public UserEntity GetUser(int userId)
 {
     return(_projDL.GetUser(userId));
 }