public void RenderTheDetailsView() { var controller = new RehearsalsController(); var result = controller.Details(1); result.AssertViewRendered().ForView("Details").WithViewData<Rehearsal>(); }
public void DisplayTheRehearsalRequested() { var controller = new RehearsalsController(); var result = controller.Details(1) as ViewResult; var rehearsal = result.Model as Rehearsal; Assert.That(rehearsal.Id, Is.EqualTo(1)); }