Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="prodCode"></param>
 /// <param name="betsDataStore"></param>
 /// <param name="calculator"></param>
 /// <param name="betCommission"></param>
 public Product(string prodCode, IDataStore betsDataStore, IDividendCalculator calculator, double betCommission)
 {
     productCode        = prodCode;
     dataStore          = betsDataStore;
     dividendCalculator = calculator;
     commission         = betCommission;
 }
Exemplo n.º 2
0
 public DividendJOPPDGenerator(
     ICurrencyConverter currencyConverter,
     IDividendCalculator dividendCalculator,
     IPayment2DBarCodeGenerator payment2DBarCodeGenerator)
 {
     this.currencyConverter         = currencyConverter;
     this.dividendCalculator        = dividendCalculator;
     this.payment2DBarCodeGenerator = payment2DBarCodeGenerator;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create and return the instance of Product class
 /// </summary>
 /// <param name="calculator"></param>
 /// <param name="betCommission"></param>
 /// <returns></returns>
 public static object CreateProductInstance(string prodCode, IDataStore betsDataStore,
                                            IDividendCalculator calculator, double betCommission)
 {
     return(new Product(prodCode, betsDataStore, calculator, betCommission));
 }