Пример #1
0
        public void Init()
        {
            TestBaseInit();
            _taxCalculationStrategiesMock = new Mock <IEnumerable <ITaxCalculationStrategy> >();
            _productRepositoryMock        = new Mock <IProductRepository>();
            InitializeStrategies();

            _receiptEngine = new ReceiptEngine(LoggerMock.Object, _taxCalculationStrategiesMock.Object, _productRepositoryMock.Object);
        }
Пример #2
0
 public ReceiptController(ILogger <ReceiptController> logger, IReceiptEngine receiptEngine)
     : base(logger)
 {
     _receiptEngine = receiptEngine.ThrowIfNull(nameof(receiptEngine));
 }