Example #1
0
        public void DeleteGeocacheThatDoesNotExistAndExpectNotFound()
        {
            controller = new GeocacheApiController();
            var response = controller.Delete(20);

            Assert.IsNotNull(response);
            Assert.IsInstanceOfType(response, typeof(NotFoundResult));
        }
Example #2
0
        public void DeleteGeocacheThatDoesExistAndExpectOk()
        {
            controller = new GeocacheApiController();
            var response      = controller.Delete(15);
            var contentResult = response as OkNegotiatedContentResult <Geocache>;

            Assert.IsNotNull(response);
            Assert.IsNotInstanceOfType(response, typeof(OkResult));
        }