Example #1
0
        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));
        }
Example #2
0
        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);
        }
Example #3
0
 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;
 }
Example #4
0
 public CommandHandler(UserAlertService userAlertService, UserRecordService userRecordService)
 {
     this.userAlertService  = userAlertService;
     this.userRecordService = userRecordService;
 }