public void IsClosed() { //Arrange _patientService.ClosePatientTracking(1); var patient = _dataContext.Patients.First(p => p.PatientStatus == PatientStatus.Closed); //Act var closed = _patientService.IsClosed(patient.Id); //Assert Assert.That(closed, Is.True); }
public ActionResult Close(int id) { _patientService.ClosePatientTracking(id); _patientService.Log(OperationType.PatientClose, User.Identity.GetUserId <int>(), patientId: id); return(RedirectToAction("View", new { id })); }