public void GetAllLayersTest()
        {
            var id       = "id";
            var expected = new List <Layer>()
            {
                new Layer()
                {
                    Id     = id,
                    Type   = Layer.TYPE_DB_TABLE,
                    Name   = "name",
                    Source = "source",
                    Fields = new List <LayerField>()
                    {
                        new LayerField()
                        {
                            FieldName = "id",
                            DataType  = "UUID",
                            FieldSize = 64
                        }
                    }
                }
            };

            var url     = String.Join("/", new string[] { urlPrefix, db1, "layers" });
            var handler = new MockHttpHandler(url, "GET", (req, res, param) =>
            {
                var result     = new RestResult();
                result.Success = true;
                result.Data    = JsonConvert.SerializeObject(expected);

                return(JsonConvert.SerializeObject(result));
            });

            mockServer.AddRequestHandler(handler);

            try
            {
                var db     = new MapDB(db1);
                var actual = db.GetAllLayers();
                Assert.AreEqual <Layer>(expected[0], actual[0]);
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.Message);
            }
        }