public void Update_ClinicCouldNotFound_Fail() { // arrange var clinic = new Clinic() { Name = "Test Clinic" }; var response = new Response <Clinic>() { IsSucceed = false, ErrorMessage = "Clinic could not found", Result = null }; _unitOfWork.Setup(x => x.ClinicRepository.GetById(It.IsAny <int>())).Returns((Clinic)null); // act var result = _clinicService.Update(clinic); // assert _assertHelper.Assertion(response, result); }