/// <summary> /// Patient Profile Failed /// </summary> private void PatientProfile_Failed() { Mock <IPatientProfileRuleEngine> mock = new Mock <IPatientProfileRuleEngine>(); patientProfileRuleEngine = mock.Object; var patientProfileModels = new List <PatientProfileModel>(); patientProfileModel = new PatientProfileModel() { ContactID = 0, ClientTypeID = 1, FirstName = "FirstName", Middle = "MiddleName", LastName = "LastName", GenderID = 1, DOB = DateTime.Now, PreferredName = "PreferredName", }; patientProfileModels.Add(patientProfileModel); var financialAssessment = new Response <PatientProfileModel>() { DataItems = null, RowAffected = 0 }; //Get PatientProfile Response <PatientProfileModel> patientProfileResponse = new Response <PatientProfileModel>(); patientProfileResponse.DataItems = patientProfileModels.Where(contact => contact.ContactID == contactId).ToList(); mock.Setup(r => r.GetPatientProfile(It.IsAny <long>())) .Returns(patientProfileResponse); }
/// <summary> /// Initializes a new instance of the <see cref="PatientProfileController"/> class. /// </summary> /// <param name="patientProfileRuleEngine">The patient Profile Rule Engine.</param> public PatientProfileController(IPatientProfileRuleEngine patientProfileRuleEngine) { _patientProfileRuleEngine = patientProfileRuleEngine; }