Exemplo n.º 1
0
        public void Get_RateV4Request_RateV4Response()
        {
            RateV4Response response = _rateService.Get(RateServiceTestsData.GetDomesticRequest());

            Assert.That(response, Is.InstanceOf <RateV4Response>());
        }
Exemplo n.º 2
0
 public void Get_DomesticWithZipCodeNull_ThrowsNullReferenceException()
 {
     Assert.Throws(typeof(NullReferenceException), () => _rateService.Get(RateServiceTestsData.GetDomesticRequestWithZipDestinationNull()));
 }
Exemplo n.º 3
0
        public void Get_IntlRateV2Request_IntlRateV4Response()
        {
            IntlRateV2Response response = _rateService.Get(RateServiceTestsData.GetInternationalRequest());

            Assert.That(response, Is.InstanceOf <IntlRateV2Response>());
        }
Exemplo n.º 4
0
        public void Get_DomesticWithZipCodeLessThanFiveCharacters_ReturnsPackageError()
        {
            RateV4Response response = _rateService.Get(RateServiceTestsData.GetDomesticRequestWithZipDestinationLessThan5CharactersLong());

            Assert.That(response.Packages[0].Error, Is.Not.Null);
        }