public AddSlotCommandHandler(IApplicationDbContext context, IBoosterService boosterService, IDiscordGuildChannelService discordChannelService) { _context = context; _boosterService = boosterService; _discordChannelService = discordChannelService; }
public void Setup() { _appFixture = new ApplicationFixture(); _boosterService = Substitute.For <IBoosterService>(); _appFixture.OnConfigureServices += (_, collection) => { collection.AddSingleton(_boosterService); }; }
public PopulateBoosterServiceCommandHandler(IApplicationDbContext context, IBoosterService boosterService, IDiscordGuildService guildService) { _context = context; _boosterService = boosterService; _guildService = guildService; }
public ActivateBoosterCommandHandler(IApplicationDbContext context, IBoosterService boosterService, IDateTime dateTime, IDiscordGuildChannelService discordChannelService) { _context = context; _boosterService = boosterService; _dateTime = dateTime; _discordChannelService = discordChannelService; }
public UpdateBoosterCycleCommandHandler(IApplicationDbContext context, IBoosterService boosterService, IDateTime dateTime, IDiscordGuildChannelService discordChannelService, IMediator mediator) { _context = context; _boosterService = boosterService; _dateTime = dateTime; _mediator = mediator; _discordChannelService = discordChannelService; }
public void Setup() { _mediator = Substitute.For <IMediator>(); _dbContext = Substitute.For <IApplicationDbContext>(); _boosterService = Substitute.For <IBoosterService>(); _dateTime = Substitute.For <IDateTime>(); _discordChannelService = Substitute.For <IDiscordGuildChannelService>(); _sussy = new UpdateBoosterCycleCommandHandler(_dbContext, _boosterService, _dateTime, _discordChannelService, _mediator); }
public void Setup() { _appFixture = new ApplicationFixture(); _dbContext = Substitute.For <IApplicationDbContext>(); _boosterService = Substitute.For <IBoosterService>(); _appFixture.OnConfigureServices += (_, services) => { services.AddSingleton(_dbContext); services.AddSingleton(_boosterService); }; }
public void Setup() { _appFixture = new ApplicationFixture(); _dbContext = Substitute.For <IApplicationDbContext>(); _boosterService = Substitute.For <IBoosterService>(); _discordGuildService = Substitute.For <IDiscordGuildService>(); _appFixture.OnConfigureServices += (_, services) => { services.AddSingleton(_dbContext); services.AddSingleton(_boosterService); services.AddSingleton(_discordGuildService); }; _boosterService.ActiveBoosters = Arg.Do <Dictionary <ulong, List <ActiveBooster> > >(x => _activeBoosters = x); _boosterService.QueuedBoosters = Arg.Do <Dictionary <ulong, Queue <QueuedBooster> > >(x => _queuedBoosters = x); _boosterService.AvailableSlots = Arg.Do <Dictionary <ulong, List <AvailableSlot> > >(x => _availableSlots = x); _boosterService.ActiveBoosters.Returns(_activeBoosters); _boosterService.QueuedBoosters.Returns(_queuedBoosters); _boosterService.AvailableSlots.Returns(_availableSlots); }
public GetQueuedBoostersQueryHandler(IBoosterService boosterService) { _boosterService = boosterService; }
public GetAllActiveBoostersQueryHandler(IBoosterService boosterService) { _boosterService = boosterService; }
public SaveQueueCommandHandler(IApplicationDbContext context, IBoosterService boosterService) { _context = context; _boosterService = boosterService; }
public GetBoosterMultiplierCommandHandler(IBoosterService boosterService) { _boosterService = boosterService; }
public AddBoosterCommandHandler(IBoosterService boosterService, IMediator mediator) { _boosterService = boosterService; _mediator = mediator; }
public RemoveSlotCommandHandler(IApplicationDbContext context, IBoosterService boosterService) { _context = context; _boosterService = boosterService; }