public void MatchState_ShouldReturn_TaxRate() { //Arrange var repo = new TestRepository(); var errorLogRepository = new FakeErrorLogRepository(); string fakeDate = @"DataFiles\TestFiles\Orders_01012020.txt"; OrderOperations ops = new OrderOperations(repo, errorLogRepository); //Act var taxRate = ops.MatchState("OH"); //Assert Assert.AreEqual(6.25M, taxRate); }
public void GetOrder_ShouldReturn_False_IfOrder_DoesNotExist() { //Arrange var repo = new TestRepository(); var errorLogRepository = new FakeErrorLogRepository(); string fakeDate = @"DataFiles\TestFiles\Orders_01012020.txt"; OrderOperations ops = new OrderOperations(repo, errorLogRepository); //Act Response response = ops.GetOrder(fakeDate, 5); //Assert Assert.AreEqual(false, response.Success); }