public void Then_The_Request_Is_Correctly_Encoded_For_Special_Characters(string query) { var actual = new GetLocationsQueryRequest(query); actual.GetUrl.Should() .Be($"api/search?query={HttpUtility.UrlEncode(query)}"); }
public void Then_The_Request_Is_Correctly_Built(string query) { var actual = new GetLocationsQueryRequest(query); actual.GetUrl.Should().Be($"api/search?query={query}"); }