public void AccomodationsCreateValid()
 {
     AccomodationsController controller = new AccomodationsController();
     var result = controller.Create() as ViewResult;
     var newResult = controller.Create();
     Assert.IsInstanceOfType(newResult, typeof(ViewResult));
     //ok
 }
        public void AccomodationsCreate()
        {
            AccomodationsController controller = new AccomodationsController();
            Accomodation acc = new Accomodation();
            acc.AccomodationId = 0;
            acc.AccomodationInfoId = 1;
            acc.AccomodationName = "Test Accomodation";
            acc.AccomodationTypeId = 1;
            acc.Description = "Test accomodation desctiption";
            acc.NumberOfRooms = 999;
            acc.StarRating = 5;

            var result = controller.Create(acc);
            Assert.IsInstanceOfType(result, typeof(RedirectToRouteResult));

        }