Пример #1
0
        public GameService(UnderseaDbContext dbContext, IPlayerService playerService,
                           IArmyService armyService, IStockService stockService,
                           ICurrentInnovationService currentInnovationService, ICurrentBuildingService currentBuildingService, IHubContext <GameHub> hubContext)
        {
            _dbContext                = dbContext;
            _playerService            = playerService;
            _armyService              = armyService;
            _stockService             = stockService;
            _currentInnovationService = currentInnovationService;
            _currentBuildingService   = currentBuildingService;

            _hubContext = hubContext;
        }
 public TestController(IPlayerService playerService, ICityService cityService, IArmyService armyService,
                       IStockService stockService, ILaboratoryService laboratoryService,
                       ISquadService squadService, IGameService gameService, IBuildingService buildingService,
                       ICurrentBuildingService currentBuildingService, ICurrentInnovationService currentInnovationService)
 {
     _playerService            = playerService;
     _cityService              = cityService;
     _buildingService          = buildingService;
     _currentBuildingService   = currentBuildingService;
     _armyService              = armyService;
     _stockService             = stockService;
     _laboratoryService        = laboratoryService;
     _currentInnovationService = currentInnovationService;
     _squadService             = squadService;
     _gameService              = gameService;
 }
 public LaboratoryController(ILaboratoryService laboratoryService, ICurrentInnovationService currentInnovationService)
 {
     _laboratoryService        = laboratoryService;
     _currentInnovationService = currentInnovationService;
 }