public async Task GetStateTaxesAsync_deserializes_json() { var sut = BuildSut(); var expected = new StateTaxDto[] { new StateTaxDto { StateCode = "UT", TaxRate = 6.85m }, new StateTaxDto { StateCode = "CA", TaxRate = 8.00m }, }; _httpTest.RespondWith(JsonConvert.SerializeObject(expected)); var received = await sut.GetStateTaxesAsync(); Assert.That(received, Has.All.Matches <StateTaxDto>(r => expected.Any(e => r.TaxRate == e.TaxRate && r.StateCode == e.StateCode))); }
public Task CreateStateTaxAsync(StateTaxDto stateTax) { throw new NotImplementedException(); }