Beispiel #1
0
 public EndOfDayUpdate(
     ILogger <EndOfDayUpdate> logger,
     IEndOfDayStore endOfDayStore)
     : base(logger)
 {
     _endOfDayStore = endOfDayStore;
 }
        public override void Setup()
        {
            base.Setup();

            using var stocksContext = new StocksContext(ContextOptions);

            SetupDatabase(stocksContext);

            _endOfDayStore = Substitute.For <IEndOfDayStore>();

            _endOfDayUpdate = new EndOfDayUpdate(Logger, _endOfDayStore);
        }