public CommandHandlingService( IServiceProvider provider, DiscordSocketClient discord, CommandService commands, MangaService mangaService, UserAlertService userAlertService, ChannelService channelService, ServerAlertService serverAlertService, MangaUpdatesCrawlerService mangaUpdatesService, UnionMangasCrawlerService unionMangasService, //TuMangaCrawlerService tuMangaService, InfoAnimeCrawlerService infoAnimeCrawlerService, AppDbContext dbContext) { this.discord = discord; this.commands = commands; this.mangaService = mangaService; this.userAlertService = userAlertService; this.channelService = channelService; this.serverAlertService = serverAlertService; this.mangaUpdatesService = mangaUpdatesService; this.unionMangasService = unionMangasService; //this.tuMangaService = tuMangaService; this.infoAnimeService = infoAnimeCrawlerService; this.provider = provider; this.dbContext = dbContext; this.discord.Connected += Update; resourceManager = new ResourceManager(typeof(WebJobResource)); }
public void Setup() { var mockUserTimeRepository = new Mock <IUserTimesRepository>(); mockUserTimeRepository.Setup(x => x.SetUserTime(test_userId, test_teamId, 1567580400)); var mockSubscriberRepository = new Mock <ISubscriberRepository>(); userAlertService = new UserAlertService(mockUserTimeRepository.Object, mockSubscriberRepository.Object); }
public UserAlertModule( MangaService mangaService, UserAlertService userAlertService, CrawlerService crawlerService, AppDbContext context, LocaledResourceManager <UserAlertModuleResource> resourceManager) { this.mangaService = mangaService; this.userAlertService = userAlertService; this.crawlerService = crawlerService; this.dbContext = context; this.resourceManager = resourceManager; }
public CommandHandler(UserAlertService userAlertService, UserRecordService userRecordService) { this.userAlertService = userAlertService; this.userRecordService = userRecordService; }