public void Get_RateV4Request_RateV4Response() { RateV4Response response = _rateService.Get(RateServiceTestsData.GetDomesticRequest()); Assert.That(response, Is.InstanceOf <RateV4Response>()); }
public void Get_DomesticWithZipCodeNull_ThrowsNullReferenceException() { Assert.Throws(typeof(NullReferenceException), () => _rateService.Get(RateServiceTestsData.GetDomesticRequestWithZipDestinationNull())); }
public void Get_IntlRateV2Request_IntlRateV4Response() { IntlRateV2Response response = _rateService.Get(RateServiceTestsData.GetInternationalRequest()); Assert.That(response, Is.InstanceOf <IntlRateV2Response>()); }
public void Get_DomesticWithZipCodeLessThanFiveCharacters_ReturnsPackageError() { RateV4Response response = _rateService.Get(RateServiceTestsData.GetDomesticRequestWithZipDestinationLessThan5CharactersLong()); Assert.That(response.Packages[0].Error, Is.Not.Null); }