示例#1
0
        public void CreateGET_GivenPatientId_PatientShouldBeRetrieved()
        {
            var id = Guid.NewGuid();

            _assessmentController.Create(id);

            A.CallTo(() => _patientHelper.GetPatient(id)).MustHaveHappened(Repeated.Exactly.Once);
        }
示例#2
0
        public virtual ActionResult Create(Guid id)
        {
            var patient = _patientHelper.GetPatient(id);

            var roles = _roleHelper.GetRoles();

            var viewModel = _assessmentViewModelBuilder.BuildAssessmentViewModel(patient, roles);

            return(View(viewModel));
        }