public void FindSeatsTests_BookingId_Null() { var result = _findRoomsController.FindRooms("tenantName", 0, 1); var redirectToActionResult = Assert.IsType <RedirectToActionResult>(result); Assert.NotNull(redirectToActionResult.ControllerName); Assert.Equal("Index", redirectToActionResult.ActionName); Assert.Equal("Bookings", redirectToActionResult.ControllerName); }
public void FindSeatsTests_BookingId_Null() { var result = _findRoomsController.FindRooms("tenantName", 0, 1); //Failing for HttpContext level. Need to work on this. Hence commenting var redirectToActionResult = Assert.IsType <RedirectToActionResult>(result.Result); Assert.NotNull(redirectToActionResult.ControllerName); Assert.Equal("Index", redirectToActionResult.ActionName); Assert.Equal("Bookings", redirectToActionResult.ControllerName); }