public void Init()
        {
            TestBaseInit();
            _taxCalculationStrategiesMock = new Mock <IEnumerable <ITaxCalculationStrategy> >();
            _productRepositoryMock        = new Mock <IProductRepository>();
            InitializeStrategies();

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