コード例 #1
0
 public void AccomodationFacilitiesDeleteNotFound()
 {
     AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
     var result = (HttpStatusCodeResult)controller.Delete(-3);
     Assert.AreEqual(404, result.StatusCode);
     Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult));
 }
コード例 #2
0
        public void AccomodationFacilitiesDelete()
        {
            AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
            var result = controller.Delete(4);
            Assert.IsNotNull(result);

        }