public void AccomodationFacilitiesCreateValid()
        {
            AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
            var result = controller.Create();
            Assert.IsInstanceOfType(result, typeof(ViewResult));

        }
        public void AccomodationFacilitiesDetailsNotFound()
        {
            AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
            var result = (HttpStatusCodeResult)controller.Details(-4);
            Assert.AreEqual(404, result.StatusCode);
            Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult));

        }
        public void AccomodationFacilitiesDetails()
        {
            AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
            var result = controller.Details(1) as ViewResult;
            Assert.IsNotNull(result, "Not Expected View");
            Assert.IsInstanceOfType(result, typeof(object));
           

        }
        public void AccomodationFacilitiesCreate()
        {
            AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
            AccomodationFacility fc = new AccomodationFacility();
            fc.AccomodationFacilityId = 0;
            fc.AccomodationId = 1;
            fc.Description = "Testna Facility";
            fc.EndHours = new DateTime(1999, 1, 1,12,0,0);
            fc.StartHours = new DateTime(1999, 1, 1,8,0,0);
            fc.Name = "Ime za facility testni";

            var result = controller.Create(fc);
            Assert.IsInstanceOfType(result, typeof(RedirectToRouteResult));
        }
       public void AccomodationFacilitiesEdit()
       {
           AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
      
           AccomodationFacility accfacility = new AccomodationFacility();
           accfacility.AccomodationFacilityId = 1;
           accfacility.AccomodationId = 1;
           accfacility.Description = "Testna Verzija";
           accfacility.EndHours = new DateTime(1999, 1, 1, 12, 0, 0);
           accfacility.StartHours = new DateTime(1999, 1, 1, 8, 0, 0);
           accfacility.Name = "Ime";
           var result = controller.Edit(accfacility);
           Assert.IsInstanceOfType(result, typeof(RedirectToRouteResult));
 
           Assert.IsTrue(controller.ModelState.IsValid);
       }
 public void AccomodationFacilitiesEditId()
 {
     AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
     var result = (HttpStatusCodeResult)controller.Edit((int?)null);
     Assert.AreEqual(400, result.StatusCode);
     Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult));
 }
        public void AccomodationFacilitiesDelete()
        {
            AccomodationFacilitiesController controller = new AccomodationFacilitiesController();
            var result = controller.Delete(4);
            Assert.IsNotNull(result);

        }