public AdminRaffleItemsController(
     IRaffleItemRepository raffleItemRepository,
     IMediator mediator)
 {
     this.mediator             = mediator;
     this.raffleItemRepository = raffleItemRepository;
 }
Example #2
0
 public AdminRaffleOrdersController(
     IMediator mediator,
     IRaffleItemRepository raffleItemRepository
     )
 {
     this.mediator             = mediator;
     this.raffleItemRepository = raffleItemRepository;
 }
Example #3
0
 public UpdateRaffleItemCommandHandler(
     RaffleDbConfiguration config,
     IRaffleItemRepository repository,
     IMediator mediator)
 {
     this.repository  = repository;
     this.mediator    = mediator;
     connectionString = config.ConnectionString;
 }
Example #4
0
 public HomeController(
     ILogger <HomeController> logger,
     IRaffleEmailSender emailSender,
     IRaffleItemRepository raffleItemRepository,
     IRaffleEventRepository raffleEventRepository,
     IMediator mediator)
 {
     this.mediator = mediator;
     this.raffleEventRepository = raffleEventRepository;
     this.raffleItemRepository  = raffleItemRepository;
     this.emailSender           = emailSender;
     this.logger = logger;
 }
Example #5
0
 public CacheRaffleItemRepository(IRaffleItemRepository repository, IMemoryCache cache)
 {
     this.cache      = cache;
     this.repository = repository;
 }
Example #6
0
 public RaffleItemsController(IMediator mediator, IRaffleItemRepository repository)
 {
     this.mediator   = mediator;
     this.repository = repository;
 }