Ejemplo n.º 1
0
 public ScoreCodesController(
     IScoringService service,
     IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
Ejemplo n.º 2
0
        public GameSessionManager(string username, DifficultyLevel difficultyLevel)
        {
            _username = username;
            _gameMap  = GameMapFactory.GetGameMap(difficultyLevel);

            //In real world it will be injected via a DI container.
            _scoringService = new ConsoleScoringService();
        }
Ejemplo n.º 3
0
 public ScoringOffersController(
     IScoringService scoringService,
     EthereumClient ethereumClient,
     IClock clock)
 {
     _scoringService = scoringService;
     _ethereumClient = ethereumClient;
     _clock          = clock;
 }
Ejemplo n.º 4
0
 public ProjectsController(
     IProjectService projectService,
     IScoringService scoringService,
     IScoringApplicationRepository scoringApplicationRepository,
     IClock clock)
 {
     _projectService = projectService;
     _scoringService = scoringService;
     _scoringApplicationRepository = scoringApplicationRepository;
     _clock = clock;
 }
Ejemplo n.º 5
0
 public ScoringSystemController(
     IClubService clubService,
     IScoringService scoringService,
     IAuthorizationService authService,
     IMapper mapper)
 {
     _clubService    = clubService;
     _scoringService = scoringService;
     _authService    = authService;
     _mapper         = mapper;
 }
Ejemplo n.º 6
0
 public SeriesService(
     Core.Services.IClubService clubService,
     Core.Services.ISeriesService seriesService,
     Core.Services.IScoringService scoringService,
     Core.Services.ISeasonService seasonService,
     IMapper mapper)
 {
     _coreClubService    = clubService;
     _coreSeriesService  = seriesService;
     _coreScoringService = scoringService;
     _coreSeasonService  = seasonService;
     _mapper             = mapper;
 }
Ejemplo n.º 7
0
 public SeriesService(
     IScoringCalculatorFactory scoringCalculatorFactory,
     IScoringService scoringService,
     IConversionService converter,
     IDbObjectBuilder dbObjBuilder,
     ISailScoresContext dbContext,
     IMapper mapper)
 {
     _scoringCalculatorFactory = scoringCalculatorFactory;
     _scoringService           = scoringService;
     _converter       = converter;
     _dbObjectBuilder = dbObjBuilder;
     _dbContext       = dbContext;
     _mapper          = mapper;
 }
Ejemplo n.º 8
0
        static void Main(string[] args)
        {
            var serviceProvider = new ServiceCollection()
                                  .AddTransient <IConfigurationService, ConfigurationService>()
                                  .AddTransient <IConsoleLogService, ConsoleLogService>()
                                  .AddTransient <IUserRepository, JsonUserRepository>()
                                  .AddTransient <IUserService, UserService>()
                                  .AddTransient <INumberGeneratorService, NumberGeneratorService>()
                                  .AddTransient <IScoringService, ScoringService>()
                                  .BuildServiceProvider();

            _consoleLogService      = serviceProvider.GetService <IConsoleLogService>();
            _userService            = serviceProvider.GetService <IUserService>();
            _numberGeneratorService = serviceProvider.GetService <INumberGeneratorService>();
            _scoringService         = serviceProvider.GetService <IScoringService>();

            _consoleLogService.WriteOutput("**** WELCOME TO NUMBER GAME *****");
            _consoleLogService.WriteOutput("");

            var response = _userService.UserLogin();

            _consoleLogService.WriteOutput("");
            _consoleLogService.WriteOutput(response.ConsoleOutput);

            if (response.Success)
            {
                _startTime = DateTime.Now;
                PlayGame();
            }
            else
            {
                _consoleLogService.WriteOutput("");
                _consoleLogService.WriteOutput(">> ERROR <<");
                _consoleLogService.WriteOutput(response.ConsoleOutput);
            }

            PrintLeaderBoard();
            _consoleLogService.ReadInput();
        }
Ejemplo n.º 9
0
    public RaceService(
        Core.Services.IClubService clubService,
        Core.Services.IRaceService coreRaceService,
        Core.Services.ISeriesService coreSeriesService,
        Core.Services.IScoringService coreScoringService,
        Core.Services.IRegattaService coreRegattaService,
        Core.Services.ISeasonService coreSeasonService,

        IWeatherService weatherService,
        ISpeechService speechService,
        IMapper mapper,
        ILogger <RaceService> logger)
    {
        _coreClubService    = clubService;
        _coreRaceService    = coreRaceService;
        _coreSeriesService  = coreSeriesService;
        _coreScoringService = coreScoringService;
        _coreRegattaService = coreRegattaService;
        _coreSeasonService  = coreSeasonService;
        _weatherService     = weatherService;
        _speechService      = speechService;
        _mapper             = mapper;
        _logger             = logger;
    }
Ejemplo n.º 10
0
 public ScenarioTemplateUpdatedScoringHandler(IScoringService scoringService)
 {
     _scoringService = scoringService;
 }
Ejemplo n.º 11
0
 public CreateOfferService(ILoanOfferFactory loanOfferFactory, ILoanOfferRepository loanOfferRepository, IScoringService scoringService)
 {
     _loanOfferFactory    = loanOfferFactory;
     _loanOfferRepository = loanOfferRepository;
     _scoringService      = scoringService;
 }
Ejemplo n.º 12
0
 public ScoringStartSaga(IScoringService scoringService, IScoringApplicationService scoringApplicationService)
 {
     _scoringService            = scoringService;
     _scoringApplicationService = scoringApplicationService;
 }
 public LadderScorejob(ILifetimeScope scope)
     : base(scope)
 {
     this.unitOfWork     = this.LifetimeScope.Resolve <IUnitOfWork>();
     this.scoringService = this.LifetimeScope.Resolve <IScoringService>();
 }
Ejemplo n.º 14
0
 public ScoringContoller(IScoringService scoringService, IMessageSession messageSession, IClock clock)
 {
     _scoringService = scoringService;
     _messageSession = messageSession;
     _clock          = clock;
 }
 public LadderNotifications(IUnitOfWork unitOfWork, IScoringService scoringService)
 {
     this.unitOfWork     = unitOfWork;
     this.scoringService = scoringService;
 }
Ejemplo n.º 16
0
 public ScenarioCreatedScoringHandler(IScoringService scoringService)
 {
     _scoringService = scoringService;
 }