public SpeakerController(IConferenceLoader conferenceLoader, ISessionLoaderFactory sessionLoaderFactory, IUserProfileRepository userProfileRepository, IUserProfileFilterFactory userProfileFilterFactory)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (sessionLoaderFactory == null)
            {
                throw new ArgumentNullException("sessionLoaderFactory");
            }

            if (userProfileRepository == null)
            {
                throw new ArgumentNullException("userProfileRepository");
            }

            if (userProfileFilterFactory == null)
            {
                throw new ArgumentNullException("userProfileFilterFactory");
            }

            this.conferenceLoader = conferenceLoader;
            this.sessionLoaderFactory = sessionLoaderFactory;
            this.userProfileRepository = userProfileRepository;
            this.userProfileFilterFactory = userProfileFilterFactory;
        }
Exemplo n.º 2
0
        public VotingController(IConferenceLoader conferenceLoader, IDataProvider dataProvider, IDnsLookup dnsLookup, IChartDataConverter chartDataConverter)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (dataProvider == null)
            {
                throw new ArgumentNullException("dataProvider");
            }

            if (dnsLookup == null)
            {
                throw new ArgumentNullException("dnsLookup");
            }

            if (chartDataConverter == null)
            {
                throw new ArgumentNullException("chartDataConverter");
            }

            this.conferenceLoader   = conferenceLoader;
            this.dataProvider       = dataProvider;
            this.dnsLookup          = dnsLookup;
            this.chartDataConverter = chartDataConverter;
        }
Exemplo n.º 3
0
 public SessionController(IConferenceLoader conferenceLoader, IUserProfileRepository userProfileRepository, ISessionRepository sessionRepository, ISessionSorter sorter)
 {
     this.conferenceLoader      = conferenceLoader;
     this.userProfileRepository = userProfileRepository;
     this.sessionRepository     = sessionRepository;
     sessionSorter = sorter;
 }
        public VotingController(IConferenceLoader conferenceLoader, IDataProvider dataProvider, IDnsLookup dnsLookup, IChartDataConverter chartDataConverter)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (dataProvider == null)
            {
                throw new ArgumentNullException("dataProvider");
            }

            if (dnsLookup == null)
            {
                throw new ArgumentNullException("dnsLookup");
            }

            if (chartDataConverter == null)
            {
                throw new ArgumentNullException("chartDataConverter");
            }

            this.conferenceLoader = conferenceLoader;
            this.dataProvider = dataProvider;
            this.dnsLookup = dnsLookup;
            this.chartDataConverter = chartDataConverter;
        }
 public VotingControllerBuilder()
 {
     conferenceLoader = Substitute.For<IConferenceLoader>();
     dataProvider = Substitute.For<IDataProvider>();
     dnsLookup = Substitute.For<IDnsLookup>();
     chartDataConverter = Substitute.For<IChartDataConverter>();
 }
Exemplo n.º 6
0
        public SpeakerController(IConferenceLoader conferenceLoader, ISessionLoaderFactory sessionLoaderFactory, IUserProfileRepository userProfileRepository, IUserProfileFilterFactory userProfileFilterFactory)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (sessionLoaderFactory == null)
            {
                throw new ArgumentNullException("sessionLoaderFactory");
            }

            if (userProfileRepository == null)
            {
                throw new ArgumentNullException("userProfileRepository");
            }

            if (userProfileFilterFactory == null)
            {
                throw new ArgumentNullException("userProfileFilterFactory");
            }

            this.conferenceLoader         = conferenceLoader;
            this.sessionLoaderFactory     = sessionLoaderFactory;
            this.userProfileRepository    = userProfileRepository;
            this.userProfileFilterFactory = userProfileFilterFactory;
        }
 public VotingControllerBuilder()
 {
     conferenceLoader   = Substitute.For <IConferenceLoader>();
     dataProvider       = Substitute.For <IDataProvider>();
     dnsLookup          = Substitute.For <IDnsLookup>();
     chartDataConverter = Substitute.For <IChartDataConverter>();
 }
 public SessionController(IConferenceLoader conferenceLoader, IUserProfileRepository userProfileRepository, ISessionRepository sessionRepository, ISessionSorter sorter, EmailMessengerFactory messengerFactory)
 {
     this.conferenceLoader = conferenceLoader;
     this.userProfileRepository = userProfileRepository;
     this.sessionRepository = sessionRepository;
     sessionSorter = sorter;
     emailMessengerFactory = messengerFactory;
 }
        public AdminHomeController(IConferenceLoader conferenceLoader)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            this.conferenceLoader = conferenceLoader;
        }
        public ConferenceIsInPreviewFilter(IConferenceLoader conferenceLoader)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            this.conferenceLoader = conferenceLoader;
        }
        public ConferenceIsInPreviewFilter(IConferenceLoader conferenceLoader)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            this.conferenceLoader = conferenceLoader;
        }
Exemplo n.º 12
0
        public AdminHomeController(IConferenceLoader conferenceLoader)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            this.conferenceLoader = conferenceLoader;
        }
        public void BeforeEachTest()
        {
            _voteRepository = Substitute.For<IVoteRepository>();
            _voteRepository.HasVotedFor(Arg.Any<int>(), Arg.Any<Guid>()).Returns(true);

            _conferenceLoader = Substitute.For<IConferenceLoader>();
            var conference = new Conference(1, "", "");
            _conferenceLoader.LoadConference(Arg.Is(SessionId)).Returns(conference);

            _handler = new DeleteVoteCommandHandler(_voteRepository, _conferenceLoader);
        }
Exemplo n.º 14
0
        public void BeforeEachTest()
        {
            _voteRepository = Substitute.For <IVoteRepository>();
            _voteRepository.HasVotedFor(Arg.Any <int>(), Arg.Any <Guid>()).Returns(true);

            _conferenceLoader = Substitute.For <IConferenceLoader>();
            var conference = new Conference(1, "", "");

            _conferenceLoader.LoadConference(Arg.Is(SessionId)).Returns(conference);

            _handler = new DeleteVoteCommandHandler(_voteRepository, _conferenceLoader);
        }
        public void BeforeEachTest()
        {
            _voteRepository = Substitute.For<IVoteRepository>();
            _voteRepository.HasVotedFor(Arg.Any<int>(), Arg.Any<Guid>()).Returns(false);

            _conferenceLoader = Substitute.For<IConferenceLoader>();
            var conference = new Conference(1, "", "");
            //            conference.AddToCalendar(ConferenceHelper.GetOpenVotingPeriod());
            _conferenceLoader.LoadConference(Arg.Is(1)).Returns(conference);

            _handler = new DeleteVoteCommandHandler(_voteRepository, _conferenceLoader);
        }
Exemplo n.º 16
0
        public void BeforeEachTest()
        {
            _voteRepository = Substitute.For <IVoteRepository>();
            _voteRepository.HasVotedFor(Arg.Any <int>(), Arg.Any <Guid>()).Returns(false);

            _conferenceLoader = Substitute.For <IConferenceLoader>();
            var conference = new Conference(1, "", "");

//            conference.AddToCalendar(ConferenceHelper.GetOpenVotingPeriod());
            _conferenceLoader.LoadConference(Arg.Is(1)).Returns(conference);

            _handler = new DeleteVoteCommandHandler(_voteRepository, _conferenceLoader);
        }
        public VotingCookieFactory(IConferenceLoader conferenceLoader, ICalendarItemRepository calendarItemRepository)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            this.conferenceLoader = conferenceLoader;
            this.calendarItemRepository = calendarItemRepository;
        }
Exemplo n.º 18
0
        public BannerModelQuery(IConferenceLoader conferenceLoader, ICalendarItemRepository calendarItemRepository)
        {
            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            this.conferenceLoader = conferenceLoader;
            this.calendarItemRepository = calendarItemRepository;
        }
Exemplo n.º 19
0
        public BannerModelQuery(IConferenceLoader conferenceLoader, ICalendarItemRepository calendarItemRepository)
        {
            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            this.conferenceLoader       = conferenceLoader;
            this.calendarItemRepository = calendarItemRepository;
        }
Exemplo n.º 20
0
        public HomeController(IConferenceLoader conferenceLoader, IViewModelQuery<IEnumerable<SponsorModel>> sponsorsQuery)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            this.conferenceLoader = conferenceLoader;
            this.sponsorsQuery = sponsorsQuery;
        }
Exemplo n.º 21
0
        public AccountController(IUserProfileRepository userProfileRepository, IConferenceLoader conferenceLoader)
        {
            if (userProfileRepository == null)
            {
                throw new ArgumentNullException("userProfileRepository");
            }

            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            this.userProfileRepository = userProfileRepository;
            this.conferenceLoader      = conferenceLoader;
        }
Exemplo n.º 22
0
        public VotingCookieFactory(IConferenceLoader conferenceLoader, ICalendarItemRepository calendarItemRepository)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (calendarItemRepository == null)
            {
                throw new ArgumentNullException("calendarItemRepository");
            }

            this.conferenceLoader       = conferenceLoader;
            this.calendarItemRepository = calendarItemRepository;
        }
Exemplo n.º 23
0
        public NavigationBarController(IConferenceLoader conferenceLoader, IMenuStateFactory menuStateFactory, IUrlHelperFactory urlHelperFactory)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (menuStateFactory == null)
            {
                throw new ArgumentNullException("menuStateFactory");
            }

            if (urlHelperFactory == null)
            {
                throw new ArgumentNullException("urlHelperFactory");
            }

            this.conferenceLoader = conferenceLoader;
            this.menuStateFactory = menuStateFactory;
            this.urlHelperFactory = urlHelperFactory;
        }
Exemplo n.º 24
0
        public HomeController(IConferenceLoader conferenceLoader, IViewModelQuery <IEnumerable <SponsorModel> > sponsorsQuery, AgendaSessionsLoader agendaSessionsLoader)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (sponsorsQuery == null)
            {
                throw new ArgumentNullException("sponsorsQuery");
            }

            if (agendaSessionsLoader == null)
            {
                throw new ArgumentNullException("agendaSessionsLoader");
            }

            this.conferenceLoader     = conferenceLoader;
            this.sponsorsQuery        = sponsorsQuery;
            this.agendaSessionsLoader = agendaSessionsLoader;
        }
        public NavigationBarController(IConferenceLoader conferenceLoader, IMenuStateFactory menuStateFactory, IUrlHelperFactory urlHelperFactory)
        {
            if (conferenceLoader == null)
            {
                throw new ArgumentNullException("conferenceLoader");
            }

            if (menuStateFactory == null)
            {
                throw new ArgumentNullException("menuStateFactory");
            }

            if (urlHelperFactory == null)
            {
                throw new ArgumentNullException("urlHelperFactory");
            }

            this.conferenceLoader = conferenceLoader;
            this.menuStateFactory = menuStateFactory;
            this.urlHelperFactory = urlHelperFactory;
        }
 public RegisterVoteCommandHandler(IVoteRepository voteRepository, IConferenceLoader conferenceLoader)
 {
     this.voteRepository   = voteRepository;
     this.conferenceLoader = conferenceLoader;
 }
 private HomeController CreateHomeController(IConferenceLoader conferenceLoader)
 {
     var sponsorModelQuery = new AllPublicSponsors(new InMemorySponsorRepository(), new DefaultSponsorSorter());
     return new HomeController(conferenceLoader, sponsorModelQuery);
 }
 public ConferenceLoaderBuilder()
 {
     conference = Substitute.For<IConference>();
     conferenceLoader = Substitute.For<IConferenceLoader>();
     conferenceLoader.LoadConference().Returns(conference);
 }
Exemplo n.º 29
0
        private HomeController CreateHomeController(IConferenceLoader conferenceLoader)
        {
            var sponsorModelQuery = new AllPublicSponsors(new InMemorySponsorRepository(), new DefaultSponsorSorter());

            return(new HomeController(conferenceLoader, sponsorModelQuery, new AgendaSessionsLoader(Substitute.For <ISessionLoader>(), Substitute.For <ISpeakerRepository>())));
        }
 protected override object CreateFilter(IConferenceLoader conferenceLoader)
 {
     return new ConferenceIsInPreviewFilter(conferenceLoader);
 }
Exemplo n.º 31
0
 protected override object CreateFilter(IConferenceLoader conferenceLoader)
 {
     return(new ConferenceIsClosedFilter(conferenceLoader));
 }
Exemplo n.º 32
0
 public SessionVoteModelQuery(IVoteRepository voteRepository, IConferenceLoader conferenceLoader)
 {
     this.voteRepository   = voteRepository;
     this.conferenceLoader = conferenceLoader;
 }
 public SessionVoteModelQuery(IVoteRepository voteRepository, IConferenceLoader conferenceLoader)
 {
     this.voteRepository = voteRepository;
     this.conferenceLoader = conferenceLoader;
 }
 public VotingControllerBuilder WithConferenceLoader(IConferenceLoader conferenceLoader)
 {
     this.conferenceLoader = conferenceLoader;
     return this;
 }
Exemplo n.º 35
0
 public ConferenceLoaderBuilder()
 {
     conference       = Substitute.For <IConference>();
     conferenceLoader = Substitute.For <IConferenceLoader>();
     conferenceLoader.LoadConference().Returns(conference);
 }
Exemplo n.º 36
0
 protected abstract object CreateFilter(IConferenceLoader conferenceLoader);
 protected override object CreateFilter(IConferenceLoader conferenceLoader)
 {
     return new ConferenceIsClosedFilter(conferenceLoader);
 }
Exemplo n.º 38
0
 public VotingControllerBuilder WithConferenceLoader(IConferenceLoader conferenceLoader)
 {
     this.conferenceLoader = conferenceLoader;
     return(this);
 }
Exemplo n.º 39
0
 protected override object CreateFilter(IConferenceLoader conferenceLoader)
 {
     return(new ConferenceIsInPreviewFilter(conferenceLoader));
 }