public void RoomAvailabilityDetailsNull() { RoomAvailabilitiesController controller = new RoomAvailabilitiesController(); var result = (HttpStatusCodeResult)controller.Details(null); Assert.AreEqual(400, result.StatusCode); Assert.IsInstanceOfType(result, typeof(HttpStatusCodeResult)); }
public void RoomAvailabilityDetails() { RoomAvailabilitiesController controller = new RoomAvailabilitiesController(); var result = controller.Details(1); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(ViewResult)); }