コード例 #1
0
        public void AccServiceDeleteNotValid()
        {
            AccomodationServicesController controller = new AccomodationServicesController();
            var result = (HttpStatusCodeResult)controller.Delete(-1);
            Assert.AreEqual(404, result.StatusCode);
            Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult));

        }
コード例 #2
0
        public void AccServiceDelete()
        {
            AccomodationServicesController controller = new AccomodationServicesController();
            var result = controller.Delete(1);
            Assert.IsNotNull(result);

        }