public CreateConcertCommandHandler(IConcertRepository concertRepository, IEventPublisherFactory eventHandlerFactory, IConcertFactory concertFactory, ILogger logger)
 {
     ConcertRepository   = concertRepository;
     EventHandlerFactory = eventHandlerFactory;
     ConcertFactory      = concertFactory;
     Logger = logger;
 }
Ejemplo n.º 2
0
 public ConcertController(IConcertRepository concertRepository, IConcertSearchService concertSearchService, IEventSenderService eventSenderService, TelemetryClient telemetryClient)
 {
     this.concertRepository    = concertRepository;
     this.concertSearchService = concertSearchService;
     this.eventSenderService   = eventSenderService;
     this.telemetryClient      = telemetryClient;
 }
Ejemplo n.º 3
0
 public VenueController(IConcertRepository concertRepository, IVenueRepository venueRepository)
     : base(concertRepository, venueRepository)
 {
     // Setup Callbacks
     concertRepository.StatusCallback = DisplayMessage;
     venueRepository.StatusCallback   = DisplayMessage;
 }
Ejemplo n.º 4
0
 public BaseController(IConcertRepository concertRepository, IVenueRepository venueRepository)
     : this()
 {
     // Setup Fields
     _concertRepository = concertRepository;
     _venueRepository = venueRepository;
 }
Ejemplo n.º 5
0
 public BaseController(IConcertRepository concertRepository, IVenueRepository venueRepository)
     : this()
 {
     // Setup Fields
     _concertRepository = concertRepository;
     _venueRepository   = venueRepository;
 }
Ejemplo n.º 6
0
 public VenueController(IConcertRepository concertRepository, IVenueRepository venueRepository)
     : base(concertRepository, venueRepository)
 {
     // Setup Callbacks
     concertRepository.StatusCallback = DisplayMessage;
     venueRepository.StatusCallback = DisplayMessage;
 }
 public CreateNewConcertCommand(IConcertRepository concertRepository,
                                string geoTitle, string engTitle, string description, DateTime concertDate)
 {
     _concertRepository = concertRepository;
     GeoTitle           = geoTitle;
     EngTitle           = engTitle;
     Description        = description;
     ConcertDate        = concertDate;
 }
Ejemplo n.º 8
0
 public ApplicationInitializer(
     IConcertRepository concertRepository,
     IConcertSearchService concertSearchService,
     IEventSenderService eventSenderService)
 {
     // Initialize all resources at application startup.
     concertRepository.Initialize();
     concertSearchService.Initialize();
     eventSenderService.Initialize();
 }
Ejemplo n.º 9
0
        public HomeController(IConcertRepository concertRepository, IVenueRepository venueRepository)
            : base(concertRepository, venueRepository)
        {
            // Setup Fields
            _concertRepository = concertRepository;
            _venueRepository   = venueRepository;

            // Setup Callbacks
            concertRepository.StatusCallback = DisplayMessage;
            venueRepository.StatusCallback   = DisplayMessage;
        }
Ejemplo n.º 10
0
        public HomeController(IConcertRepository concertRepository, IVenueRepository venueRepository)
            : base(concertRepository, venueRepository)
        {
            // Setup Fields
            _concertRepository = concertRepository;
            _venueRepository = venueRepository;

            // Setup Callbacks
            concertRepository.StatusCallback = DisplayMessage;
            venueRepository.StatusCallback = DisplayMessage;
        }
 public SellTicketsService(
     IConcertRepository concertRepository,
     IBuyerRepository buyerRepository,
     ITicketsService ticketsService,
     IPublishEvents eventPublisher)
 {
     _concertRepository = concertRepository;
     _buyerRepository   = buyerRepository;
     _ticketsService    = ticketsService;
     _eventPublisher    = eventPublisher;
 }
        public EventAdministrationController(IConcertRepository concertRepository, IArtistRepository artistRepository, IVenueRepository venueRepository, ICityRepository cityRepository)
        {
            // Setup Fields
            _concertRepository = concertRepository;
            _artistRepository  = artistRepository;
            _venueRepository   = venueRepository;
            _cityRepository    = cityRepository;

            // Setup Callbacks
            _concertRepository.StatusCallback = DisplayMessage;
            _artistRepository.StatusCallback  = DisplayMessage;
            _venueRepository.StatusCallback   = DisplayMessage;
            _cityRepository.StatusCallback    = DisplayMessage;
        }
        public EventAdministrationController(IConcertRepository concertRepository, IArtistRepository artistRepository, IVenueRepository venueRepository, ICityRepository cityRepository)
        {
            // Setup Fields
            _concertRepository = concertRepository;
            _artistRepository = artistRepository;
            _venueRepository = venueRepository;
            _cityRepository = cityRepository;

            // Setup Callbacks
            _concertRepository.StatusCallback = DisplayMessage;
            _artistRepository.StatusCallback = DisplayMessage;
            _venueRepository.StatusCallback = DisplayMessage;
            _cityRepository.StatusCallback = DisplayMessage;
        }
Ejemplo n.º 14
0
        public FindSeatsController(IVenueMetaDataRepository venueMetaDataRepository, IConcertRepository concertRepository, ITicketRepository ticketRepository, IVenueRepository venueRepository, IFindSeatsRepository findSeatsRepository)
        {
            // Setup Fields
            _venueMetaDataRepository = venueMetaDataRepository;
            _concertRepository       = concertRepository;
            _ticketRepository        = ticketRepository;
            _venueRepository         = venueRepository;
            _findSeatsRepository     = findSeatsRepository;

            // Setup Callbacks
            _venueMetaDataRepository.StatusCallback = DisplayMessage;
            _concertRepository.StatusCallback       = DisplayMessage;
            _ticketRepository.StatusCallback        = DisplayMessage;
            _venueRepository.StatusCallback         = DisplayMessage;
        }
        public FindSeatsController(IVenueMetaDataRepository venueMetaDataRepository, IConcertRepository concertRepository, ITicketRepository ticketRepository, IVenueRepository venueRepository, IFindSeatsRepository findSeatsRepository)
        {
            // Setup Fields
            _venueMetaDataRepository = venueMetaDataRepository;
            _concertRepository = concertRepository;
            _ticketRepository = ticketRepository;
            _venueRepository = venueRepository;
            _findSeatsRepository = findSeatsRepository;

            // Setup Callbacks
            _venueMetaDataRepository.StatusCallback = DisplayMessage;
            _concertRepository.StatusCallback = DisplayMessage;
            _ticketRepository.StatusCallback = DisplayMessage;
            _venueRepository.StatusCallback = DisplayMessage;
        }
        public FindSeatsController(IConcertRepository concertRepository, ITicketRepository ticketRepository, IVenueRepository venueRepository, IFindSeatsRepository findSeatsRepository, IDiscountRepository discountRepository, IAllSeatsRepository allSeatsRepository, ISeatSectionRepository seatSectionRepository)
        {
            // Setup Fields
            _concertRepository     = concertRepository;
            _ticketRepository      = ticketRepository;
            _venueRepository       = venueRepository;
            _findSeatsRepository   = findSeatsRepository;
            _discountRepository    = discountRepository;
            _allSeatsRepository    = allSeatsRepository;
            _seatSectionRepository = seatSectionRepository;

            // Setup Callbacks
            _concertRepository.StatusCallback = DisplayMessage;
            _ticketRepository.StatusCallback  = DisplayMessage;
            _venueRepository.StatusCallback   = DisplayMessage;
        }
Ejemplo n.º 17
0
 public ConcertsController(IConcertRepository repo, ILogger <ConcertsController> logger)
 {
     _repo   = repo;
     _logger = logger;
 }
Ejemplo n.º 18
0
 public ConcertController(IConcertRepository concertsRepository)
 {
     repository = concertsRepository;
 }
 public ConcertService(IConcertRepository concertRepository, IVenueRepository venueRepository, IWishlistRepository wishlistRepository)
 {
     _concertRepository  = concertRepository;
     _venueRepository    = venueRepository;
     _wishlistRepository = wishlistRepository;
 }
Ejemplo n.º 20
0
 public TicketController(IConcertRepository concertRepository)
 {
     this.concertRepository = concertRepository;
 }
 public BuyConcertTicketsCommandHandler(IConcertRepository concertRepository, IEventPublisherFactory eventHandlerFactory, ILogger logger)
 {
     ConcertRepository   = concertRepository;
     EventHandlerFactory = eventHandlerFactory;
     Logger = logger;
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="concertRepository"></param>
 public ConcertService(IConcertRepository concertRepository)
 {
     _concertRepository = concertRepository;
 }
Ejemplo n.º 23
0
 public ConcertController(IConcertRepository concertRepository, IConcertSearchService concertSearchService, IEventSenderService eventSenderService)
 {
     this.concertRepository    = concertRepository;
     this.concertSearchService = concertSearchService;
     this.eventSenderService   = eventSenderService;
 }
Ejemplo n.º 24
0
 public ConcertService(IUnitOfWork unitOfWork, IConcertRepository concertRepository)
     : base(unitOfWork, concertRepository)
 {
     this.concertRepository = concertRepository;
 }
Ejemplo n.º 25
0
 public ConcertController(IConcertRepository repo)
 {
     repository = repo;
 }
 public CreateConcertService(IConcertRepository concertRepository, IPublishEvents eventPublisher)
 {
     _concertRepository = concertRepository;
     _eventPublisher    = eventPublisher;
 }