public void AccomodationFacilitiesCreateValid() { AccomodationFacilitiesController controller = new AccomodationFacilitiesController(); var result = controller.Create(); Assert.IsInstanceOfType(result, typeof(ViewResult)); }
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)); }