public void Error_should_pass_the_banner_text()
        {
            // Given
            const string bannerText = "Banner text";

            A.CallTo(() => centresDataService.GetBannerText(CentreId)).Returns(bannerText);

            // When
            var result = controller.Error();

            // Then
            var expectedModel = new ErrorViewModel(bannerText);

            result.Should().BeViewResult()
            .ModelAs <ErrorViewModel>().HelpText().Should().Be(expectedModel.HelpText());
        }
        public void StatusCode_should_set_banner_text_when_code_is_500()
        {
            // Given
            const string bannerText = "Banner text";

            A.CallTo(() => centresDataService.GetBannerText(CentreId)).Returns(bannerText);

            // When
            var result = controller.StatusCode(500);

            // Then
            var expectedModel = new ErrorViewModel(bannerText);

            result.Should().BeViewResult()
            .ModelAs <ErrorViewModel>().HelpText().Should().Be(expectedModel.HelpText());
        }