public void DeleteGeocacheThatDoesNotExistAndExpectNotFound() { controller = new GeocacheApiController(); var response = controller.Delete(20); Assert.IsNotNull(response); Assert.IsInstanceOfType(response, typeof(NotFoundResult)); }
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)); }