Exemple #1
0
        public PaymentTypeMedicareOpLogic(IPaymentTypeMedicareOpRepository paymentTypeMedicareOpDetailsRepository,
                                          ICRecordLogic cRecordLogic, IDRecordLogic dRecordLogic, IERecordLogic eRecordLogic,
                                          ILRecordLogic lRecordLogic)
        {
            if (cRecordLogic != null)
            {
                _cRecordLogic = cRecordLogic;
            }

            if (dRecordLogic != null)
            {
                _dRecordLogic = dRecordLogic;
            }

            if (eRecordLogic != null)
            {
                _eRecordLogic = eRecordLogic;
            }

            if (lRecordLogic != null)
            {
                _lRecordLogic = lRecordLogic;
            }

            if (paymentTypeMedicareOpDetailsRepository != null)
            {
                _medicareOpDetailsRepository = paymentTypeMedicareOpDetailsRepository;
            }
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentTypeMedicareOpLogic"/> class.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 public PaymentTypeMedicareOpLogic(string connectionString)
 {
     _cRecordLogic = Factory.CreateInstance <ICRecordLogic>();
     _dRecordLogic = Factory.CreateInstance <IDRecordLogic>();
     _eRecordLogic = Factory.CreateInstance <IERecordLogic>();
     _lRecordLogic = Factory.CreateInstance <ILRecordLogic>();
     _medicareOpDetailsRepository = Factory.CreateInstance <IPaymentTypeMedicareOpRepository>(connectionString, true);
 }