public void IntegrationTests_SupportedCountries() { var config = new KeyManager(); var phaxio = new PhaxioClient(config["api_key"], config["api_secret"]); var countries = phaxio.ListSupportedCountries(); Assert.Greater(countries.Count(), 0, "There should be some countries"); }
public void UnitTests_SupportedCountries() { var clientBuilder = new IRestClientBuilder { Op = "supportedCountries", NoAuth = true }; var phaxio = new PhaxioClient(IRestClientBuilder.TEST_KEY, IRestClientBuilder.TEST_SECRET, clientBuilder.Build()); var countries = phaxio.ListSupportedCountries(); var expectedCountries = PocoFixtures.GetTestSupportedCountries(); Assert.AreEqual(expectedCountries.Count(), countries.Count(), "Number should be the same"); Assert.AreEqual(expectedCountries["Canada"].PricePerPage, countries["Canada"].PricePerPage, "PricePerPage should be the same"); }
public void UnitTests_SupportedCountries() { var clientBuilder = new IRestClientBuilder { Op = "supportedCountries", NoAuth = true }; var phaxio = new PhaxioClient(IRestClientBuilder.TEST_KEY, IRestClientBuilder.TEST_SECRET, clientBuilder.Build()); var countries = phaxio.ListSupportedCountries(); var expectedCountries = PocoFixtures.GetTestSupportedCountries(); Assert.AreEqual(expectedCountries.Count(), countries.Count(), "Number should be the same"); Assert.AreEqual(expectedCountries["Canada"].PricePerPage, countries["Canada"].PricePerPage, "PricePerPage should be the same"); }