Ejemplo n.º 1
0
        public CalculationApp(IOffersReader offersReader, ICalculationsOutput calculationsOutput, IQuoteCalculator quoteCalculator)
        {
            if (null == offersReader)
            {
                throw new ArgumentNullException(nameof(offersReader));
            }

            if (null == calculationsOutput)
            {
                throw new ArgumentNullException(nameof(calculationsOutput));
            }

            if (null == quoteCalculator)
            {
                throw new ArgumentNullException(nameof(quoteCalculator));
            }

            this._offersReader       = offersReader;
            this._calculationsOutput = calculationsOutput;
            this._quoteCalculator    = quoteCalculator;
        }
        public CalculationApp(IOffersReader offersReader, ICalculationsOutput calculationsOutput, IQuoteCalculator quoteCalculator)
        {
            if (null == offersReader)
            {
                throw new ArgumentNullException(nameof(offersReader));
            }

            if (null == calculationsOutput)
            {
                throw new ArgumentNullException(nameof(calculationsOutput));
            }

            if (null == quoteCalculator)
            {
                throw new ArgumentNullException(nameof(quoteCalculator));
            }

            this._offersReader = offersReader;
            this._calculationsOutput = calculationsOutput;
            this._quoteCalculator = quoteCalculator;
        }
Ejemplo n.º 3
0
 public QuoteApp(ILogger <QuoteApp> logger, IArgumentValidator argumentValidator, IQuoteCalculator quoteCalculator)
 {
     _logger            = logger;
     _argumentValidator = argumentValidator;
     _quoteCalculator   = quoteCalculator;
 }