/// <summary>
        /// Initializes a new instance of the <see cref="PatientInsuranceController"/> class.
        /// </summary>
        public PatientInsuranceController()
        {
            this.it2Business             = new PatientAddressIt2Manager();
            this.patientInsuranceManager = new PatientInsuranceManager();

            // TODO: This needs a better design. PatientInsuranceManager can't make its own InsuranceManager
            // or even reference once because PatientInsuranceManager is in Eyefinity.Enterprise.Business and
            // InsuranceManager is in Eyefinity.PracticeManagement.Business which already has a dependency
            // on Eyefinity.Enterprise.Business (it would make a circular reference)
            this.patientInsuranceManager.GetMappedVspPlanIdsForOffice = officenum => new InsuranceManager()
                                                                        .SearchManualInsurancePlans("VSP", officenum, null, true)
                                                                        .Select(plan => plan.PlanID);

            this.patientServices = Container.Resolve <IPatientServices>();
        }
Пример #2
0
 /// <summary>Initializes a new instance of the <see cref="PatientAddressController"/> class.</summary>
 public PatientAddressController()
 {
     this.it2Business = new PatientAddressIt2Manager();
 }