/// <summary> /// Initializes a new instance of the <see cref="PaymentTypePerCaseLogic"/> class. /// </summary> /// <param name="paymentTypePerCaseDetailsRepository">The payment type per case details repository.</param> public PaymentTypePerCaseLogic(IPaymentTypePerCaseRepository paymentTypePerCaseDetailsRepository) { if (paymentTypePerCaseDetailsRepository != null) { _paymentTypePerCaseDetailsRepository = paymentTypePerCaseDetailsRepository; } }
/// <summary> /// Initializes a new instance of the <see cref="PaymentTypePerCaseLogic"/> class. /// </summary> /// <param name="connectionString">The connection string.</param> public PaymentTypePerCaseLogic(string connectionString) { _paymentTypePerCaseDetailsRepository = Factory.CreateInstance <IPaymentTypePerCaseRepository>(connectionString, true); }