public void Should_return_request_with_correct_merged_url_with_path_segments_deduplication(string replicaUrl, string requestUrl, string expectedUrl) { converter = new RequestConverter(new ConsoleLog(), true); var convertedRequest = converter.TryConvertToAbsolute(Request.Get(requestUrl), new Uri(replicaUrl)); convertedRequest.Should().NotBeNull(); convertedRequest.Url.IsAbsoluteUri.Should().BeTrue(); convertedRequest.Url.OriginalString.Should().Be(expectedUrl); }
public void Should_return_null_when_replica_url_is_not_absolute(string replicaUrl) { converter.TryConvertToAbsolute(Request.Get("request/path"), new Uri(replicaUrl, UriKind.Relative)).Should().BeNull(); }