public void Then_The_Request_Is_Correctly_Encoded_For_Special_Characters(string fullPostcode) { var actual = new GetLocationByFullPostcodeRequest(fullPostcode); actual.GetUrl.Should() .Be($"api/postcodes?postcode={HttpUtility.UrlEncode(fullPostcode)}"); }
public void Then_The_Request_Is_Correctly_Built(string fullPostcode) { var actual = new GetLocationByFullPostcodeRequest(fullPostcode); actual.GetUrl.Should().Be($"api/postcodes?postcode={fullPostcode}"); }