Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AdjudicationEngine"/> class.
 /// </summary>
 public AdjudicationEngine(string connectionString)
 {
     _contractLogic          = Factory.CreateInstance <IContractLogic>(connectionString, true);
     _contractRepository     = Factory.CreateInstance <IContractRepository>(connectionString, true);
     _evaluateableClaimLogic = Factory.CreateInstance <IEvaluateableClaimLogic>();
     //FIXED-2016-R2-S3 : initialize _facilityLogic into constructor
     _facilityLogic = Factory.CreateInstance <IFacilityLogic>();
     _evaluateableClaimRepository = Factory.CreateInstance <IEvaluateableClaimRepository>(connectionString, true);
     _paymentResultLogic          = Factory.CreateInstance <IPaymentResultLogic>(connectionString, true);
     _contractLogLogic            = Factory.CreateInstance <IContractLogLogic>(connectionString, true);
 }
Пример #2
0
 public BaseController()
 {
     // TODO: DI
     dataLogic        = new DataLogic();
     bankLogic        = new BankLogic();
     userLogic        = new UserLogic();
     orderLogic       = new OrderLogic();
     legalLogic       = new LegalLogic();
     personLogic      = new PersonLogic();
     requestLogic     = new RequestLogic();
     identityLogic    = new IdentityLogic();
     employeeLogic    = new EmployeeLogic();
     documentLogic    = new DocumentLogic();
     contractLogic    = new ContractLogic();
     pricelistLogic   = new PricelistLogic();
     contractorLogic  = new ContractorLogic();
     accountingLogic  = new AccountingLogic();
     participantLogic = new ParticipantLogic();
 }
Пример #3
0
        public AdjudicationEngine(IContractLogic contractLogic, IContractRepository contractRepository, IEvaluateableClaimLogic evaluateableClaimLogic, IEvaluateableClaimRepository evaluateableClaimRepository, IPaymentResultLogic paymentResultLogic, IContractLogLogic contractLogLogic, IFacilityLogic facilityLogic)
        {
            if (contractLogic != null)
            {
                _contractLogic = contractLogic;
            }

            if (contractRepository != null)
            {
                _contractRepository = contractRepository;
            }

            if (evaluateableClaimRepository != null)
            {
                _evaluateableClaimRepository = evaluateableClaimRepository;
            }

            if (evaluateableClaimLogic != null)
            {
                _evaluateableClaimLogic = evaluateableClaimLogic;
            }

            if (paymentResultLogic != null)
            {
                _paymentResultLogic = paymentResultLogic;
            }

            if (contractLogLogic != null)
            {
                _contractLogLogic = contractLogLogic;
            }

            if (facilityLogic != null)
            {
                _facilityLogic = facilityLogic;
            }
        }