public void CreateGET_GivenPatientId_PatientShouldBeRetrieved() { var id = Guid.NewGuid(); _assessmentController.Create(id); A.CallTo(() => _patientHelper.GetPatient(id)).MustHaveHappened(Repeated.Exactly.Once); }
public virtual ActionResult Create(Guid id) { var patient = _patientHelper.GetPatient(id); var roles = _roleHelper.GetRoles(); var viewModel = _assessmentViewModelBuilder.BuildAssessmentViewModel(patient, roles); return(View(viewModel)); }