public static void CanGetStateTaxInfo() { InMemoryTaxRepo repo = new InMemoryTaxRepo(); var stateTaxes = repo.GetStateTaxes(); Assert.AreEqual(4, stateTaxes.Count()); }
public static void CanCheckRepoForState(string stateAbbreviation, bool expectedResult) { Manager manager = new Manager(new InMemoryOrderRepo(), new InMemoryMaterialRepo(), new InMemoryTaxRepo()); InMemoryTaxRepo repo = new InMemoryTaxRepo(); var stateTaxData = repo.GetStateTaxes(); CheckStateResponse response = manager.CheckForRequestedState(stateAbbreviation); Assert.AreEqual(expectedResult, response.Success); }