public void when_listing_nexus_regions() { var stubHttp = HttpMockRepository.At("http://localhost:9191"); stubHttp.Stub(x => x.Get("/v2/nexus/regions")) .Return(TaxjarFixture.GetJSON("nexus_regions.json")) .OK(); var nexusRegions = client.NexusRegions(); Assert.AreEqual(3, nexusRegions.Count); Assert.AreEqual("US", nexusRegions[0].CountryCode); Assert.AreEqual("United States", nexusRegions[0].Country); Assert.AreEqual("CA", nexusRegions[0].RegionCode); Assert.AreEqual("California", nexusRegions[0].Region); }