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); }
public void AccomodationTypesEdit() { AccomodationTypesController controller = new AccomodationTypesController(); AccomodationType accType = new AccomodationType(); accType.AccomodationTypeId = 1; accType.AccomodationTypeName = "Apartment"; var result = controller.Edit(accType); Assert.IsInstanceOfType(result, typeof(RedirectToRouteResult)); }