public PurchaseProvider(ILogger <PurchaseProvider> logger, IGrossCalculator grossCalculator, IVatCalculator vatCalculator, INetCalculator netCalculator)
 {
     _logger          = logger;
     _grossCalculator = grossCalculator;
     _vatCalculator   = vatCalculator;
     _netCalculator   = netCalculator;
 }
Exemplo n.º 2
0
 public PurchaseCalculatorWithNet(decimal vatRate, decimal?netAmount, IGrossCalculator grossCalculator, IVatCalculator vatCalculator)
 {
     _grossCalculator = grossCalculator;
     _vatCalculator   = vatCalculator;
     VatRate          = vatRate;
     NetAmount        = netAmount;
 }
 public PurchaseCalculatorWithVat(decimal vatRate, decimal?vatAmount, INetCalculator netCalculator, IGrossCalculator grossCalculator)
 {
     _netCalculator   = netCalculator;
     _grossCalculator = grossCalculator;
     VatRate          = vatRate;
     VatAmount        = vatAmount;
 }