public ConferenceService(IConferenceRepository conferenceRepository, IHostRepository hostRepository, ILogger <ConferenceService> logger) { _conferenceRepository = conferenceRepository; _hostRepository = hostRepository; _logger = logger; }
public ConferenceCreatedHandler( IConferenceRepository conferenceRepository, ILogger <ConferenceCreatedHandler> logger) { _conferenceRepository = conferenceRepository; _logger = logger; }
public ConferenceService(IConferenceRepository conferenceRepository, IHostRepository hostRepository, IConferenceDeletionPolicy conferenceDeletionPolicy) { _conferenceRepository = conferenceRepository; _hostRepository = hostRepository; _conferenceDeletionPolicy = conferenceDeletionPolicy; }
public ConferenceService(IOrderRepository orderRepository, IConferenceRepository conferenceRepository, IHostServiceBus hostServiceBus, ILogger logger, ISeatRepository seatRepository) { _orderRepository = orderRepository; _conferenceRepository = conferenceRepository; _hostServiceBus = hostServiceBus; _logger = logger; _seatRepository = seatRepository; }
public void SetupTestFixture() { _repository = new ConferenceRepository(NHibernateHelper.OpenSession()); _transactionScope = new TransactionScope(); IoC.Initialize(); Mapper.Initialize(cfg => cfg.AddProfile <AutoMapperProfile>()); }
public ConferenceService(IConferenceRepository conferenceRepository, IHostRepository hostRepository, IConferenceDeletionPolicy conferenceDeletionPolicy, IMessageBroker messageBroker) { _conferenceRepository = conferenceRepository; _hostRepository = hostRepository; _conferenceDeletionPolicy = conferenceDeletionPolicy; _messageBroker = messageBroker; }
public ConferenceService(IConferenceRepository conferenceRepository, IHostRepository hostRepository, ILogger <ConferenceService> logger, IMessageBroker messageBroker) { _conferenceRepository = conferenceRepository; _hostRepository = hostRepository; _logger = logger; _messageBroker = messageBroker; }
public ConferenceController( IConferenceRepository repository, IMediator mediator ) { _repository = repository; _mediator = mediator; }
public MyAgendaController(IConferenceRepository conferenceRepository, ISpeakerRepository speakerRepository, IMyAgendaRepository myAgendaRepository, UserManager <IdentityUser> userManager) { _conferenceRepository = conferenceRepository; _speakerRepository = speakerRepository; _myAgendaRepository = myAgendaRepository; _userManager = userManager; }
public ConferenceService( IMapper mapper, IMediatorHandler mediatorHandler, IConferenceRepository conferenceRepository) { _conferenceRepository = conferenceRepository; _mapper = mapper; _mediatorHandler = mediatorHandler; }
public AreYouSure(IConferenceRepository conferenceRepository, int conferenceId) { _conferenceRepository = conferenceRepository; InitializeComponent(); this.YesButton.Click += ConferenceYesButton_Click; this.NoButton.Click += NoDeleteButton_Click; this.ObjectId = conferenceId; }
public MainSpeakerDetails(IConferenceRepository ConferenceRepository, IGetSpeakerDetail GetSpeakerDetail, string SpeakerName) { InitializeComponent(); _ConferenceRepository = ConferenceRepository; _GetSpeakerDetail = GetSpeakerDetail; pictureBox1.ImageLocation = Base64Decode(_GetSpeakerDetail.GetSpeakerImage(SpeakerName)); pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage; pictureBox1.Refresh(); speakerName = SpeakerName; }
public ConferenceService(IConferenceRepository repositoy, IUserRepository userRepository, IAdminOfConferenceRepository adminOfConferenceRepository, IMapper mapper) { _conferenceRepository = repositoy; _userRepository = userRepository; _adminOfConferenceRepository = adminOfConferenceRepository; _mapper = mapper; }
public ConferenceCommandHandler( IUser user, IUnitOfWork uow, IMediatorHandler mediator, IConferenceRepository conferenceRepository, INotificationHandler <DomainNotification> notifications) : base(uow, mediator, notifications) { _user = user; _mediator = mediator; _conferenceRepository = conferenceRepository; }
/// <summary> /// Initializes a new instance of the <see cref="ConferencesController"/> class. /// </summary> /// <param name="conferencesIndexViewModel"> /// The <see cref="IConferencesIndexViewModel"/> that will provide ViewModel data to the Index view. /// </param> /// <param name="conferencesDetailsViewModel"> /// The <see cref="IConferencesDetailsViewModel"/> that will provide ViewModel data to the Details view. /// </param> /// <param name="conferenceRepository"> /// The <see cref="IConferenceRepository"/> by which conference data will be accessed. /// </param> /// <param name="sharedRepository"> /// The <see cref="ISharedRepository"/> by which shared data resources will be accessed. /// </param> public ConferencesController( IConferencesIndexViewModel conferencesIndexViewModel, IConferencesDetailsViewModel conferencesDetailsViewModel, IConferenceRepository conferenceRepository, ISharedRepository sharedRepository) { _conferencesIndexViewModel = conferencesIndexViewModel; _conferencesDetailsViewModel = conferencesDetailsViewModel; _conferenceRepository = conferenceRepository; _sharedRepository = sharedRepository; }
public TicketSaleService(IConferenceRepository conferenceRepository, ITicketSaleRepository ticketSaleRepository, ITicketRepository ticketRepository, ITicketGenerator ticketGenerator, IClock clock, ILogger <TicketSaleService> logger) { _conferenceRepository = conferenceRepository; _ticketSaleRepository = ticketSaleRepository; _ticketRepository = ticketRepository; _ticketGenerator = ticketGenerator; _clock = clock; _logger = logger; }
public TwilioEngine(IAccountRepository accountRepository, ICallRepository callRepository, IConferenceRepository conferenceRepository, IConferenceParticipantRepository conferenceParticipantRepository, IAlertRepository alertRepository, IActivityLogRepository activityLogRepository, ILogger <TwilioEngine> logger) { AccountRepository = accountRepository; CallRepository = callRepository; ConferenceRepository = conferenceRepository; ConferenceParticipantRepository = conferenceParticipantRepository; AlertRepository = alertRepository; ActivityLogRepository = activityLogRepository; Logger = logger; }
public ConferencesController( IMapper mapper, ICommandHandler <CreateConferenceCommand> createConferenceCommandHandler, IConferenceDao conferenceDao, IConferenceRepository conferenceRepository) { this.createConferenceCommandHandler = createConferenceCommandHandler; this.conferenceDao = conferenceDao; this.mapper = mapper; this.conferenceRepository = conferenceRepository; }
public TicketService(IClock clock, IConferenceRepository conferenceRepository, ITicketRepository ticketRepository, ITicketSaleRepository ticketSaleRepository, ITicketGenerator generator, IMessageBroker messageBroker, ILogger <TicketService> logger) { _clock = clock; _conferenceRepository = conferenceRepository; _ticketRepository = ticketRepository; _ticketSaleRepository = ticketSaleRepository; _generator = generator; _messageBroker = messageBroker; _logger = logger; }
public StartUpForm(IGetSpeakerDetail GetSpeakerDetail, IConferenceTypeRepository ConferenceTypeRepository, IConferenceRepository ConferenceRepository, IDictionaryCountryRepository DictionaryCountryRepository, IDictionaryCountyRepository DictionaryCountyRepository, IDictionaryCityRepository dictionaryCityRepository, IDictionaryConferenceCategoryRepository DictionaryConferenceCategoryRepository, ILocationRepository locationRepository) { _DictionaryCityRepository = dictionaryCityRepository; _GetSpeakerDetail = GetSpeakerDetail; _ConferenceRepository = ConferenceRepository; _ConferenceTypeRepository = ConferenceTypeRepository; _DictionaryCountryRepository = DictionaryCountryRepository; _DictionaryCountyRepository = DictionaryCountyRepository; _DictionaryConferenceCategoryRepository = DictionaryConferenceCategoryRepository; _LocationRepository = locationRepository; InitializeComponent(); }
public SpeakerItemViewModel(Speaker speaker, ConferenceData conferenceData, IConferenceRepository conferenceRepository, bool getSessions = true) { this.speaker = speaker; if (getSessions) { this.Sessions = conferenceData.SessionSpeakerRelations .Where(r => r.SpeakerId == this.speaker.Id) .Select(relation => conferenceData.Sessions.First(s => s.Id == relation.SessionId)) .Select(s => new SessionItemViewModel(s, conferenceData, conferenceRepository, false)) .ToList(); } }
public ConferenceService( IEventBus eventBus, IConferenceRepositoryContext context, IConferenceRepository conferenceRepository, IOrderRepository orderRepository, ISeatTypeRepository seatTypeRepository) : base(context) { this.eventBus = eventBus; this.conferenceRepository = conferenceRepository; this.orderRepository = orderRepository; this.seatTypeRepository = seatTypeRepository; }
public NewEditForm(AddEvent f, AddEventDetailModel EventDetail, IConferenceRepository ConferenceRepository, string dictionary, bool EditSave) { InitializeComponent(); _ConferenceRepository = ConferenceRepository; DetailEvent = EventDetail; form4 = f; form4.Enabled = false; EditOrSave = EditSave; dictionar = dictionary; if (dictionary.ToString() == "Speaker") { label1.Text = "Email"; label3.Visible = true; textBox3.Visible = true; } if (dictionary.ToString() == "DictionaryCategory") { label1.Visible = false; textBox1.Visible = false; } if (dictionary.ToString() == "DictionaryType") { label1.Visible = false; textBox1.Visible = false; checkBox1.Visible = true; } if (EditOrSave) { if (dictionary.ToString() == "Speaker") { textBox1.Text = DetailEvent.SpeakerEmail; textBox2.Text = EventDetail.SpeakerName; textBox3.Text = DetailEvent.SpeakerNationality; } if (dictionary.ToString() == "DictionaryCategory") { textBox2.Text = EventDetail.DictionaryConferenceCategoryName; } if (dictionary.ToString() == "DictionaryType") { textBox2.Text = EventDetail.ConferenceTypeName; checkBox1.Checked = EventDetail.isRemote; } if (dictionary.ToString() == "DictionaryCity") { textBox1.Text = EventDetail.DictionaryCityCode; textBox2.Text = EventDetail.DictionaryCityName; } if (dictionary.ToString() == "DictionaryCountry") { textBox1.Text = EventDetail.DictionaryCountryCode; textBox2.Text = EventDetail.DictionaryCountryName; } if (dictionary.ToString() == "DictionaryCounty") { textBox1.Text = EventDetail.DictionaryCountyCode; textBox2.Text = EventDetail.DictionaryCountyName; } } }
public MainPage(IConferenceRepository conferenceRepository, ICountryRepository countryRepository, IAttendeeButtonsRepository attendeeButtonsRepository, ISpeakerRepository speakerRepository, ICountyRepository countyRepository, ICityRepository cityRepository, ITypeRepository typeRepository, ICategoryRepository categoryRepository) { _conferenceRepository = conferenceRepository; _countryRepository = countryRepository; _attendeeButtons = attendeeButtonsRepository; _speakerRepository = speakerRepository; _countyRepository = countyRepository; _cityRepository = cityRepository; _typeRepository = typeRepository; _categoryRepository = categoryRepository; InitializeComponent(); this.ShowDialog(); }
public ConferenceLoader(IConferenceRepository conferenceRepository, ConferenceBuilder conferenceBuilder) { if (conferenceRepository == null) { throw new ArgumentNullException("conferenceRepository"); } if (conferenceBuilder == null) { throw new ArgumentNullException("conferenceBuilder"); } this.conferenceRepository = conferenceRepository; this.conferenceBuilder = conferenceBuilder; }
public SessionViewModel( INavigationService navigationService, IConferenceRepository conferenceRepository, IReminderService reminderService, IContentDialogService contentDialogService, IEventTracker eventTrackerService) : base("SessionView", navigationService) { this.conferenceRepository = conferenceRepository; this.reminderService = reminderService; this.contentDialogService = contentDialogService; this.eventTrackerService = eventTrackerService; }
public static ObservableCollection <SessionGroupViewModel> GroupSessions(IConferenceRepository conferenceRepository, ConferenceData conferenceData, bool favoritesOnly = false) { if (conferenceData == null) { return(null); } var sessionGroupTileInfoList = new List <SessionGroupViewModel>(); var groupHeaders = conferenceData.Slots .OrderBy(s => (s.StartHour * 100) + s.StartMinute) .Select(s => $"{s.StartHour:00}:{s.StartMinute:00} - {s.EndHour:00}:{s.EndMinute:00}") .Distinct() .ToArray(); var sessionInfos = conferenceData.Sessions .Where(s => !favoritesOnly || s.IsFavorite) .Select(s => new SessionItemViewModel(s, conferenceData, conferenceRepository)) .OrderBy(s => s.StartTime); var groups = new Dictionary <string, SessionGroupViewModel>(); foreach (var header in groupHeaders) { var group = new SessionGroupViewModel(header); sessionGroupTileInfoList.Add(group); groups[header] = group; } foreach (var sessionInfo in sessionInfos) { var groupName = $"{sessionInfo.StartTime} - {sessionInfo.EndTime}"; groups[groupName].Sessions.Add(sessionInfo); } var sessionGroupTileInfos = new ObservableCollection <SessionGroupViewModel>(); foreach (var sessionGroup in sessionGroupTileInfoList) { if (sessionGroup.Sessions.Count > 0) { sessionGroupTileInfos.Add(sessionGroup); } } return(sessionGroupTileInfos); }
public void Should_retrieve_upcoming_conferences_for_a_usergroup() { ObjectFactory.Inject(typeof(ISystemClock), new Clock(new DateTime(2009, 5, 5))); var usergroup = new UserGroup(); var conference1 = new Conference { UserGroup = usergroup, StartDate = new DateTime(2000, 1, 2), EndDate = new DateTime(2009, 4, 6) }; var conference4 = new Conference { UserGroup = usergroup, StartDate = new DateTime(2000, 1, 3), EndDate = new DateTime(2009, 5, 4, 20, 0, 0) }; var conference2 = new Conference { UserGroup = usergroup, StartDate = new DateTime(2000, 1, 4), EndDate = new DateTime(2009, 5, 5, 20, 0, 0) }; var conference3 = new Conference { UserGroup = usergroup, StartDate = new DateTime(2000, 1, 5), EndDate = new DateTime(2009, 5, 7) }; using (ISession session = GetSession()) { session.SaveOrUpdate(usergroup); session.SaveOrUpdate(conference1); session.SaveOrUpdate(conference2); session.SaveOrUpdate(conference3); session.SaveOrUpdate(conference4); session.Flush(); } IConferenceRepository repository = CreateRepository(); Conference[] conferences = repository.GetFutureForUserGroup(usergroup); conferences.Length.ShouldEqual(2); conferences[0].ShouldEqual(conference2); }
public SessionItemViewModel(Session session, ConferenceData conferenceData, IConferenceRepository conferenceRepository, bool getSpeakers = true) { this.session = session; this.conferenceRepository = conferenceRepository; this.conferenceData = conferenceData; this.Track = new TrackItemViewModel(this.session.Track); if (getSpeakers) { this.SpeakerList = this.conferenceData.SessionSpeakerRelations .Where(r => r.SessionId == this.session.Id) .Select(relation => this.conferenceData.Speakers .First(s => s.Id == relation.SpeakerId)) .Select(speaker => new SpeakerItemViewModel(speaker, this.conferenceData, conferenceRepository, true)).ToList(); this.Speakers = string.Join(", ", this.SpeakerList.Select(s => s.Name)); } var slot = this.conferenceData.Slots.First(s => s.TimeLine == session.TimeLine); this.StartTime = $"{slot.StartHour:00}:{slot.StartMinute:00}"; this.EndTime = $"{slot.EndHour:00}:{slot.EndMinute:00}"; var room = this.conferenceData.Rooms.FirstOrDefault(r => r.Id == session.RoomId); if (room != null) { this.Room = $"{room.Code:000}"; } if (this.conferenceData.Days.Count > 0) { var dateTimeStart = this.conferenceData.Days[0].Date; dateTimeStart = dateTimeStart.AddHours(slot.StartHour); dateTimeStart = dateTimeStart.AddMinutes(slot.StartMinute); this.StartDateTime = dateTimeStart; var dateTimeEnd = this.conferenceData.Days[0].Date; dateTimeEnd = dateTimeEnd.AddHours(slot.EndHour); dateTimeEnd = dateTimeEnd.AddMinutes(slot.EndMinute); this.EndDateTime = dateTimeEnd; } }
public PreliminaryPhaseController( IUserRepository userRepository, IConferenceRepository conferenceRepository, ITopicRepository topicRepository, IPhaseRepository phaseRepository, IConferenceUserRepository conferenceUserRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository ) { UserRepository = userRepository; ConferenceRepository = conferenceRepository; TopicRepository = topicRepository; PhaseRepository = phaseRepository; ConferenceUserRepository = conferenceUserRepository; UserRoleRepository = userRoleRepository; this.roleRepository = roleRepository; MailSender = new MailSender(); }
public ConferenceModelBinder(IConferenceRepository repository) { _repository = repository; }
public AttendeeController(IConferenceRepository repository) { _repository = repository; }
public ConferenceControllerBefore() { _repository = new ConferenceRepository(Sessions.Current); }
public ConferenceController(IConferenceRepository repository) { _repository = repository; //_repository = new ConferenceRepository(Sessions.Current); }
public void SetupTestFixture() { _repository = new ConferenceRepository(NHibernateHelper.OpenSession()); _transactionScope = new TransactionScope(); }
public ConferencesController(IConferenceRepository repository) { _repository = repository; }
public ConferenceController(IConferenceRepository conferenceRepository) { _conferenceRepository = conferenceRepository; }
public ConferenceController(IConferenceRepository repository) { Requires.NotNull(repository); _repository = repository; }
public ConferenceSelectorService(IConferenceRepository conferenceRepository) { _conferenceRepository = conferenceRepository; }
public HomeController(IConferenceRepository conferenceRepository, IOptions<SiteSettings> siteSettingsAccessor) { _conferenceRepository = conferenceRepository; _settings = siteSettingsAccessor.Value; }
public SchedulesController(IScheduleRepository scheduleRepository, IConferenceRepository conferenceRepository) { _scheduleRepository = scheduleRepository; _conferenceRepository = conferenceRepository; }
public ConferencesController() { _repository = new ConferenceEfRepository(new ConferenceContext()); }
public DivisionRepository(IDatabaseFactory databaseFactory, IConferenceRepository conferenceRespository) : base(databaseFactory) { _conferenceRepository = conferenceRespository; }