public void AccomodationTypesCreateValid() { AccomodationTypesController controller = new AccomodationTypesController(); var result = controller.Create(); Assert.IsInstanceOfType(result, typeof(ViewResult)); }
public void AccomodationTypesCreate() { AccomodationTypesController controller = new AccomodationTypesController(); AccomodationType accType = new AccomodationType(); accType.AccomodationTypeId = 0; accType.AccomodationTypeName = "Tent"; var result = controller.Create(accType); Assert.IsInstanceOfType(result, typeof(RedirectToRouteResult)); Assert.IsNotNull(result); }