public void TestMapFeatureServices()
{
var urls = new string[]
{
"http://192.213.102.115:6080/arcgis/rest/services/SampleWorldCities/MapServer/0/query?f=json&where=0%3D1",
"http://192.213.102.115:6080/arcgis/rest/services/World/MapServer/0/query?f=json&where=0%3D1",
"http://192.213.102.115:6080/arcgis/rest/services/World/FeatureServer/0/query?f=json&where=0%3D1",
"http://srvwindev07/ArcGIS/rest/services/GES/BusinessServices_View/MapServer/0/query?f=json&where=0%3D1"
};
var httpServices = new List<HTTPService>();
foreach (var url in urls)
{
var httpService = new HTTPService()
{
Type = "Test",
Name = "TestName",
Url = url
};
httpServices.Add(httpService);
}
var servicesStatus = httpChecker.CheckHTTPServices(httpServices);
servicesStatus.Count.Should().Be(4);
servicesStatus.Count(s => s.Status == "ON").Should().Be(4);
servicesStatus.Count(s => s.Error == null).Should().Be(4);
}