public ISessionLoader Create(IConference conference) { ISessionLoader sessionLoader; if (conference.CanPublishAgenda()) { sessionLoader = new SelectedSessionsLoader(sessionRepository); } else { sessionLoader = new AllSessionsLoader(sessionRepository); } return sessionLoader; }
public IUserProfileFilter Create(IConference conference) { IUserProfileFilter userProfileFilter; if (conference.CanPublishAgenda()) { userProfileFilter = new SelectedSpeakerProfileFilter(SelectedSessions.SpeakerIds); } else { userProfileFilter = new SubmittedSessionProfileFilter(sessionRepository); } return(userProfileFilter); }
public IUserProfileFilter Create(IConference conference) { IUserProfileFilter userProfileFilter; if (conference.CanPublishAgenda()) { userProfileFilter = new SelectedSpeakerProfileFilter(); } else { userProfileFilter = new SubmittedSessionProfileFilter(sessionRepository); } return userProfileFilter; }
public ISessionLoader Create(IConference conference) { ISessionLoader sessionLoader; if (conference.CanPublishAgenda()) { sessionLoader = new SelectedSessionsLoader(sessionRepository, SelectedSessions.SessionIds); } else { sessionLoader = new AllSessionsLoader(sessionRepository); } return(sessionLoader); }
public ConferenceLoaderBuilder WithAgendaNotPublished() { conference.CanPublishAgenda().Returns(false); return(this); }