public void TestEarlyBird() { var result = _engine.Evaluate(new PriceRequest(new DateTime(2020, 07, 13, 6, 0, 0), new DateTime(2020, 07, 13, 16, 0, 0))); Assert.AreEqual(13, result); }
public void Test1Hour(int hours, decimal expectedPrice) { var result = _engine.Evaluate(new PriceRequest(DateTime.UtcNow, DateTime.UtcNow.AddHours(hours))); Assert.AreEqual(expectedPrice, result); }