示例#1
0
        public async Task CanPingServer()
        {
            var gateway = new ArcGISGateway(_serviceStackSerializer);

            var endpoint = new ArcGISServerEndpoint("/");

            var response = await gateway.Ping(endpoint);

            Assert.Null(response.Error);
        }
示例#2
0
        public async Task CanDescribeSite()
        {
            var gateway  = new ArcGISGateway(_serviceStackSerializer);
            var response = await gateway.DescribeSite();

            Assert.NotNull(response);
            Assert.True(response.Version > 0);

            foreach (var resource in response.ArcGISServerEndpoints)
            {
                var ping = await gateway.Ping(resource);

                Assert.Null(ping.Error);
            }
        }