public void Filter_RedirectsToClosedPage_WhenTheConferenceIsClosed()
        {
            var conferenceLoader = new ConferenceLoaderBuilder()
                                        .WhenClosed()
                                        .Build();
            var filterAttribute = new ConferenceIsClosedFilter(conferenceLoader);
            var filterContext = new ActionExecutingContext();

            filterAttribute.OnActionExecuting(filterContext);

            Assert.That(filterContext.Result.GetRedirectionUrl(), Contains.Substring("Closed"));
        }
        public void Filter_DoesNotRedirectToClosedPage_WhenTheConferenceIsNotClosed()
        {
            var conferenceLoader = new ConferenceLoaderBuilder()
                                        .WhenNotClosed()
                                        .Build();
            var filterAttribute = new ConferenceIsClosedFilter(conferenceLoader);
            var filterContext = new ActionExecutingContext();

            filterAttribute.OnActionExecuting(filterContext);

            Assert.That(filterContext.Result, Is.Not.InstanceOf<RedirectResult>());
        }