예제 #1
0
        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();
        }
예제 #2
0
 public async Task GetCapabilities_NullUriGiven_ShouldThrow_ArgumentNullException()
 {
     var wpsClient = new WpsClient(new HttpClient(), new XmlSerializationService());
     await Assert.ThrowsAsync <ArgumentNullException>(() => wpsClient.GetCapabilities(null));
 }