public void FutureDateCreatesTitleWithDate()
        {
            var controller = new SchoolClosuresController();
            var model      = new Mock <ISchoolClosuresViewModel>();

            model.Setup(x => x.IsToday()).Returns(false);
            model.Setup(x => x.IsTomorrow()).Returns(false);
            model.Setup(x => x.TargetDay).Returns(new DateTime(2018, 10, 29).AddDays(2));

            var result = controller.BuildPageTitle(model.Object);

            Assert.AreEqual("List of emergency school closures on Wednesday 31 October 2018", result);
        }
        public void TodayCreatesTitleWithoutDate()
        {
            var controller = new SchoolClosuresController();
            var model      = new Mock <ISchoolClosuresViewModel>();

            model.Setup(x => x.IsToday()).Returns(true);
            model.Setup(x => x.IsTomorrow()).Returns(false);
            model.Setup(x => x.TargetDay).Returns(new DateTime(2018, 10, 29));

            var result = controller.BuildPageTitle(model.Object);

            Assert.AreEqual("List of emergency school closures", result);
        }