Пример #1
0
        public StoryService(IConfigurationSettings settings, IUserScoreService userScoreService, IDomainObjectFactory factory, ICategoryRepository categoryRepository, ITagRepository tagRepository, IStoryRepository storyRepository, IMarkAsSpamRepository markAsSpamRepository, ISpamProtection spamProtection, ISpamPostprocessor spamPostprocessor, IEmailSender emailSender, IContentService contentService, IHtmlSanitizer htmlSanitizer, IThumbnail thumbnail, IStoryWeightCalculator[] storyWeightCalculators)
        {
            Check.Argument.IsNotNull(settings, "settings");
            Check.Argument.IsNotNull(userScoreService, "userScoreService");
            Check.Argument.IsNotNull(factory, "factory");
            Check.Argument.IsNotNull(categoryRepository, "categoryRepository");
            Check.Argument.IsNotNull(tagRepository, "tagRepository");
            Check.Argument.IsNotNull(storyRepository, "storyRepository");
            Check.Argument.IsNotNull(markAsSpamRepository, "markAsSpamRepository");
            Check.Argument.IsNotNull(spamProtection, "spamProtection");
            Check.Argument.IsNotNull(spamPostprocessor, "spamPostprocessor");
            Check.Argument.IsNotNull(emailSender, "emailSender");
            Check.Argument.IsNotNull(contentService, "contentService");
            Check.Argument.IsNotNull(htmlSanitizer, "htmlSanitizer");
            Check.Argument.IsNotNull(thumbnail, "thumbnail");
            Check.Argument.IsNotEmpty(storyWeightCalculators, "storyWeightCalculators");

            _settings               = settings;
            _userScoreService       = userScoreService;
            _factory                = factory;
            _categoryRepository     = categoryRepository;
            _tagRepository          = tagRepository;
            _storyRepository        = storyRepository;
            _markAsSpamRepository   = markAsSpamRepository;
            _spamProtection         = spamProtection;
            _spamPostprocessor      = spamPostprocessor;
            _emailSender            = emailSender;
            _contentService         = contentService;
            _htmlSanitizer          = htmlSanitizer;
            _thumbnail              = thumbnail;
            _storyWeightCalculators = storyWeightCalculators;
        }
Пример #2
0
 public App(ITestService testService, ILogger <App> logger, IRaceService raceService, IUserScoreService userScoreService, IUserScoreDBSearch userScoreDBSearch, IRaceDBSearch raceDBSearch)
 {
     _testService       = testService;
     _logger            = logger;
     _raceService       = raceService;
     _userScoreService  = userScoreService;
     _userScoreDBSearch = userScoreDBSearch;
     _raceDBSearch      = raceDBSearch;
     Console.WriteLine("App constructor");
 }
Пример #3
0
        //private IHttpContextAccessor httpContextAccessor;


        public AccountController(UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager,
                                 AppDbContext dbContext, IUserScoreService userScoreService, IPlayerProfileService playerProfile)
        {
            this.userManager   = userManager;
            this.signInManager = signInManager;
            this.dbContext     = dbContext;
            _userScoreService  = userScoreService ?? throw new ArgumentNullException(nameof(userScoreService));
            _playerProfile     = playerProfile;
            //this.httpContextAccessor = httpContextAccessor;
        }
Пример #4
0
        public MembershipController(IDomainObjectFactory factory, IUserScoreService userScoreService, IEmailSender emailSender, IBlockedIPCollection blockedIPList)
        {
            Check.Argument.IsNotNull(factory, "factory");
            Check.Argument.IsNotNull(userScoreService, "userScoreService");
            Check.Argument.IsNotNull(emailSender, "emailSender");
            Check.Argument.IsNotNull(blockedIPList, "blockedIPList");

            _factory          = factory;
            _userScoreService = userScoreService;
            _emailSender      = emailSender;
            _blockedIPList    = blockedIPList;
        }
Пример #5
0
 public ResultController(
     IResultRepository resultRepository,
     IUserBetRepository userBetRepository,
     JavaScriptSerializer javaScriptSerializer,
     BetController betController,
     IUserScoreService userScoreService,
     ICacheService cacheService)
 {
     _resultRepository     = resultRepository;
     _userBetRepository    = userBetRepository;
     _javaScriptSerializer = javaScriptSerializer;
     _betController        = betController;
     _userScoreService     = userScoreService;
     _cacheService         = cacheService;
 }
Пример #6
0
 public LeaderboardService(IUserScoreService userScoreService)
 {
     this.userScoreService = userScoreService;
 }