public void AccServiceTypesDeleteNotValid() { AccomodationServiceTypesController controller = new AccomodationServiceTypesController(); var result = (HttpStatusCodeResult)controller.Delete(-1); Assert.AreEqual(404, result.StatusCode); Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult)); }
public void AccServiceTypesDelete() { AccomodationServiceTypesController controller = new AccomodationServiceTypesController(); var result = controller.Delete(1); Assert.IsNotNull(result); }