Пример #1
0
        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);
        }
Пример #2
0
        public ActionResult Close(int id)
        {
            _patientService.ClosePatientTracking(id);

            _patientService.Log(OperationType.PatientClose, User.Identity.GetUserId <int>(), patientId: id);
            return(RedirectToAction("View", new { id }));
        }