示例#1
0
        public async Task TestPricingGlobalJson()
        {
            sms77_library.Api.Library.Pricing pricing = await BaseTest.Client.Pricing(new PricingParams { Format = "json" });

            Assert.That(pricing, Is.InstanceOf(typeof(sms77_library.Api.Library.Pricing)));
            Assert.That(pricing.CountCountries, Is.Positive);
        }
示例#2
0
        public async Task TestPricingGermanyJson()
        {
            sms77_library.Api.Library.Pricing pricing = await BaseTest.Client.Pricing(
                new PricingParams { Country = "de", Format = "json" });

            Assert.That(pricing, Is.InstanceOf(typeof(sms77_library.Api.Library.Pricing)));
            Assert.That(pricing.CountCountries, Is.EqualTo(1));
        }