// ReSharper disable once InconsistentNaming
        public void GetWfsFiltersAsGeoJSONTest()
        {
            ResultController         resultController;
            JsonNetResult            result;
            JsonModel                jsonResult;
            List <WfsLayerViewModel> wfsLayersResult;

            var layersSetting = new WfsLayerSetting
            {
                Name         = "Småland & Östergötland",
                GeometryType = GeometryType.Polygon,
                Color        = "#CCCCFF",
                Filter       = "<Filter><Or><PropertyIsEqualTo><PropertyName>LänSKOD</PropertyName><Literal>5</Literal></PropertyIsEqualTo><PropertyIsEqualTo><PropertyName>LänSKOD</PropertyName><Literal>6</Literal></PropertyIsEqualTo></Or></Filter>",
                ServerUrl    = "http://slwgeo.artdata.slu.se:8080/geoserver/SLW/wfs",
                TypeName     = "SLW:MapOfSwedishCounties",
                GeometryName = "the_geom"
            };

            var layersSetting2 = new WfsLayerSetting
            {
                Name         = "Blekinge",
                GeometryType = GeometryType.Polygon,
                Color        = "#336699",
                Filter       = "<Filter><PropertyIsEqualTo><PropertyName>LänSKOD</PropertyName><Literal>10</Literal></PropertyIsEqualTo></Filter>",
                ServerUrl    = "http://slwgeo.artdata.slu.se:8080/geoserver/SLW/wfs",
                TypeName     = "SLW:MapOfSwedishCounties",
                GeometryName = "the_geom"
            };

            resultController = new ResultController();
            SessionHandler.MySettings.DataProvider.MapLayers = new MapLayersSetting();
            SessionHandler.MySettings.DataProvider.MapLayers.AddWfsLayer(layersSetting);
            SessionHandler.MySettings.DataProvider.MapLayers.AddWfsLayer(layersSetting2);

            result          = resultController.GetWfsLayersAsJSON();
            jsonResult      = (JsonModel)result.Data;
            wfsLayersResult = (List <WfsLayerViewModel>)jsonResult.Data;

            Assert.IsTrue(jsonResult.Success);
            Assert.IsNotNull(wfsLayersResult);
            Assert.IsTrue(wfsLayersResult.Count >= 2);

            Assert.IsTrue(wfsLayersResult.Last().Id == layersSetting2.Id);
            Assert.IsTrue(wfsLayersResult.Last().Name.Equals(layersSetting2.Name));
            Assert.IsTrue(wfsLayersResult.Last().Filter.Equals(layersSetting2.Filter));
            Assert.IsTrue(wfsLayersResult.Last().ServerUrl.Equals(layersSetting2.ServerUrl));
            Assert.IsTrue(wfsLayersResult.Last().GeometryName.Equals(layersSetting2.GeometryName));
            Assert.IsTrue(wfsLayersResult.Last().Color.Equals(layersSetting2.Color));
            Assert.IsTrue(wfsLayersResult.Last().TypeName.Equals(layersSetting2.TypeName));
            Assert.IsTrue(wfsLayersResult.Last().GeometryType.Equals(layersSetting2.GeometryType));
        }