Exemple #1
0
        public async Task MarketIsLinkedToEachStrategy(string marketId)
        {
            var strategy2 = new StrategySpy();

            _trader.AddStrategy(strategy2);
            await _trader.TradeMarket(marketId, 0, default);

            Assert.Equal(marketId, _strategy.LinkedMarketId());
            Assert.Equal(marketId, strategy2.LinkedMarketId());
        }
Exemple #2
0
        public async Task MarketIsLinkedToStrategy(string marketId)
        {
            await _trader.TradeMarket(marketId, 0, default);

            Assert.Equal(marketId, _strategy.LinkedMarketId());
        }