public void DisplayTheIndexView()
            {
                var controller = new ConcertsController();

                var result = controller.Index();

                result.AssertViewRendered().ForView("Index").WithViewData<IEnumerable<Concert>>();
            }
            public void RenderTheDetailsView()
            {
                var controller = new ConcertsController();

                var result = controller.Details(1);

                result.AssertViewRendered().ForView("Details").WithViewData<Concert>();
            }
            public void DisplayTheConcertsInDescendingOrderByDate()
            {
                var controller = new ConcertsController();

                var result = controller.Index() as ViewResult;
                var concerts = result.Model as IEnumerable<Concert>;

                Assert.That(concerts.OrderByDescending(c => c.DateAndStartTime), Is.EqualTo(concerts));
            }
            public void DisplayTheConcertRequested()
            {
                var controller = new ConcertsController();

                var result = controller.Details(1) as ViewResult;
                var concert = result.Model as Concert;

                Assert.That(concert.Id, Is.EqualTo(1));
            }