コード例 #1
0
        public JackpotMatchManager
        (
            IRepoServiceFactory repoServiceFactory,
            IBetService betService,
            IHashService hashService,
            IRandomService randomService,
            IJackpotDraftService draftService,
            ILogServiceFactory logServiceFactory,
            IBetOrWithdrawQueueManager betOrWithdrawQueueManager,
            IGameModeSettingService gameModeSettingService,
            IBetHubConnections betHubConnections,
            IMatchHubConnections matchHubConnections,
            IDiscordService discordService
        ) : base(repoServiceFactory, betService, hashService, randomService)
        {
            _repoServiceFactory        = repoServiceFactory;
            _betService                = betService;
            _draftService              = draftService;
            _matchHubConnections       = matchHubConnections;
            _discordService            = discordService;
            _betHubConnections         = betHubConnections;
            _gameModeSettingService    = gameModeSettingService;
            _betOrWithdrawQueueManager = betOrWithdrawQueueManager;
            _logService                = logServiceFactory.CreateLogger <JackpotMatchManager>();

            _betQueue = new BetQueue();

            SetUpGameModeAndSetting().Wait();
        }
コード例 #2
0
        public MatchManagerTest()
        {
            _fakedRepoServiceFactory     = A.Fake <IRepoServiceFactory>();
            _fakeMatchRepoServicey       = A.Fake <IMatchRepoService>();
            _fakeHashService             = A.Fake <IHashService>();
            _fakeRandomService           = A.Fake <IRandomService>();
            _fakedMatchHub               = A.Fake <IMatchHubConnections>();
            _fakedBetHub                 = A.Fake <IBetHubConnections>();
            _fakeBetService              = A.Fake <IBetService>();
            _fakedGameModeSettingService = A.Fake <IGameModeSettingService>();

            A.CallTo(() => _fakedRepoServiceFactory.MatchRepoService).Returns(_fakeMatchRepoServicey);
        }