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