public void OnPrice(PositionDir positionDir, float price, float expected) { OpenPriceSelector.OnPrice( new Signal() { Direction = positionDir, Price = price }, StockPricesDataUtils.CreatePricesData(10, 100, 5, 20), 0).ShouldBe(expected); }
public void OnClose__ReturnsClosePrice() { OpenPriceSelector.OnClose(new Signal(), StockPricesDataUtils.CreatePricesData(0, 0, 0, 10), 0).ShouldBe(10); }
public void OnOpen__ReturnsOpenPrice() { OpenPriceSelector.OnOpen(new Signal(), StockPricesDataUtils.CreatePricesData(10, 0, 0, 0), 0).ShouldBe(10); }