public void RemoveLayerTest() { var id = "id"; var url = String.Join("/", new string[] { urlPrefix, db1, "layers" }); var handler = new MockHttpHandler(url, "POST", (req, res, param) => { var result = new RestResult(); result.Success = true; return(JsonConvert.SerializeObject(result)); }); mockServer.AddRequestHandler(handler); try { var db = new MapDB(db1); db.RemoveLayer(id); } catch (Exception ex) { Assert.Fail(ex.Message); } }