public ScoreCodesController( IScoringService service, IMapper mapper) { _service = service; _mapper = mapper; }
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(); }
public ScoringOffersController( IScoringService scoringService, EthereumClient ethereumClient, IClock clock) { _scoringService = scoringService; _ethereumClient = ethereumClient; _clock = clock; }
public ProjectsController( IProjectService projectService, IScoringService scoringService, IScoringApplicationRepository scoringApplicationRepository, IClock clock) { _projectService = projectService; _scoringService = scoringService; _scoringApplicationRepository = scoringApplicationRepository; _clock = clock; }
public ScoringSystemController( IClubService clubService, IScoringService scoringService, IAuthorizationService authService, IMapper mapper) { _clubService = clubService; _scoringService = scoringService; _authService = authService; _mapper = mapper; }
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; }
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; }
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(); }
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; }
public ScenarioTemplateUpdatedScoringHandler(IScoringService scoringService) { _scoringService = scoringService; }
public CreateOfferService(ILoanOfferFactory loanOfferFactory, ILoanOfferRepository loanOfferRepository, IScoringService scoringService) { _loanOfferFactory = loanOfferFactory; _loanOfferRepository = loanOfferRepository; _scoringService = scoringService; }
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>(); }
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; }
public ScenarioCreatedScoringHandler(IScoringService scoringService) { _scoringService = scoringService; }