public async Task GetCapabilities_ValidUriGiven_ShouldPass(string httpClientResponseXml) { var wpsClient = new WpsClient(new HttpClient(GetMockedMessageHandlerForResponse(httpClientResponseXml)), new XmlSerializationService()); var capabilities = await wpsClient.GetCapabilities(MockUri); capabilities.Should().NotBeNull(); }
public async Task GetCapabilities_NullUriGiven_ShouldThrow_ArgumentNullException() { var wpsClient = new WpsClient(new HttpClient(), new XmlSerializationService()); await Assert.ThrowsAsync <ArgumentNullException>(() => wpsClient.GetCapabilities(null)); }