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 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 SessionController(IConferenceLoader conferenceLoader, IUserProfileRepository userProfileRepository, ISessionRepository sessionRepository, ISessionSorter sorter) { this.conferenceLoader = conferenceLoader; this.userProfileRepository = userProfileRepository; this.sessionRepository = sessionRepository; sessionSorter = sorter; }
public VotingControllerBuilder() { conferenceLoader = Substitute.For<IConferenceLoader>(); dataProvider = Substitute.For<IDataProvider>(); dnsLookup = Substitute.For<IDnsLookup>(); chartDataConverter = Substitute.For<IChartDataConverter>(); }
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 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(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); }
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; }
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; }
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; }
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; }
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 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 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); }
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); }
protected override object CreateFilter(IConferenceLoader conferenceLoader) { return(new ConferenceIsClosedFilter(conferenceLoader)); }
public SessionVoteModelQuery(IVoteRepository voteRepository, IConferenceLoader conferenceLoader) { this.voteRepository = voteRepository; this.conferenceLoader = conferenceLoader; }
public VotingControllerBuilder WithConferenceLoader(IConferenceLoader conferenceLoader) { this.conferenceLoader = conferenceLoader; return this; }
public ConferenceLoaderBuilder() { conference = Substitute.For <IConference>(); conferenceLoader = Substitute.For <IConferenceLoader>(); conferenceLoader.LoadConference().Returns(conference); }
protected abstract object CreateFilter(IConferenceLoader conferenceLoader);
protected override object CreateFilter(IConferenceLoader conferenceLoader) { return new ConferenceIsClosedFilter(conferenceLoader); }
public VotingControllerBuilder WithConferenceLoader(IConferenceLoader conferenceLoader) { this.conferenceLoader = conferenceLoader; return(this); }
protected override object CreateFilter(IConferenceLoader conferenceLoader) { return(new ConferenceIsInPreviewFilter(conferenceLoader)); }