public DeleteCommand(IBookService bookService, IMovieService movieService, IStarService starService, IStudioService studioService) { if (bookService == null) { throw new ArgumentNullException("Book service cannot be null."); } if (movieService == null) { throw new ArgumentNullException("Movie service cannot be null."); } if (starService == null) { throw new ArgumentNullException("Star service cannot be null."); } if (studioService == null) { throw new ArgumentNullException("Studio service cannot be null."); } this.bookService = bookService; this.movieService = movieService; this.starService = starService; this.studioService = studioService; }
public void Initialize() { IKernel kernel = new StandardKernel(new ServerModule()); _starService = kernel.Get <IStarService>(); _itemService = kernel.Get <IItemService>(); }
public MovieService( IRepository <Movie> movieRepository, IUnitOfWork unitOfWork, IMovieFactory movieFactory, IProducerService producerService, IStudioService studioService, IGenreService genreService, IBookService bookService, IStarService starService) { if (movieRepository == null) { throw new ArgumentNullException("Movie repository cannot be null!"); } if (unitOfWork == null) { throw new ArgumentNullException("Unit of work cannot be null!"); } if (movieFactory == null) { throw new ArgumentNullException("Movie factory cannot be null!"); } if (producerService == null) { throw new ArgumentNullException("Producer service cannot be null!"); } if (studioService == null) { throw new ArgumentNullException("Studio service cannot be null!"); } if (genreService == null) { throw new ArgumentNullException("Genre service cannot be null!"); } if (bookService == null) { throw new ArgumentNullException("Book service cannot be null!"); } if (starService == null) { throw new ArgumentNullException("Star service cannot be null!"); } this.movieRepository = movieRepository; this.unitOfWork = unitOfWork; this.movieFactory = movieFactory; this.producerService = producerService; this.studioService = studioService; this.genreService = genreService; this.bookService = bookService; this.starService = starService; }
public LevelFinishedState(SignalBus signalBus, GameService service, ISaveService SaveService, IPathService pathService, int level, IStarService starService) { this.starService = starService; currentLevel = level; this.saveService = SaveService; this.pathService = pathService; this.service = service; this.signalBus = signalBus; }
public GameService(SignalBus signalBus, ScriptableLevels levels, IPathService pathService, ISaveService saveService, IStarService starService) { this.pathService = pathService; this.levels = levels; this.signalBus = signalBus; this.starService = starService; this.saveService = saveService; signalBus.Subscribe <LevelFinishedSignal>(ChangeToLevelFinishedState); //pathService.DrawGraph(levels.levelsList[currentLevel]); }
public NotificationHub(IUserService userService, IConfiguration configuration, IFollowService followService, IPostService postService, IImageService imageService, IStarService starService) { _userService = userService; _configuration = configuration; _followService = followService; _postService = postService; _imageService = imageService; _starService = starService; }
public StarController( IStarService starService, IEnumMappingService enumMappingService, IAuthorizationService authorizationService, ICatalogService catalogService) : base(authorizationService, enumMappingService) { _starService = starService; _enumMappingService = enumMappingService; _authorizationService = authorizationService; _catalogService = catalogService; }
private static void Main() { threadConsole = new Thread(ConsoleThread); threadConsole.Start(); IKernel kernel = new StandardKernel(new ServerModule()); _gameService = kernel.Get <IGameService>(); _mobService = kernel.Get <IMobService>(); _userService = kernel.Get <IUserService>(); _starService = kernel.Get <IStarService>(); _itemService = kernel.Get <IItemService>(); General.InitializeServer(); }
public DiscoveriesController( IDiscoveryService discoveryService, IPlanetService planetService, IStarService starService, ITelescopeService telescopeService, IUserService userService, UserManager <User> userManager) { this.discoveryService = discoveryService; this.planetService = planetService; this.starService = starService; this.telescopeService = telescopeService; this.userService = userService; this.userManager = userManager; }
public EnemyService(IPlayerService _playerService, IStarService _starService, IPathService _pathService, EnemyScriptableObjectList enemyList, SignalBus _signalBus, IGameService _gameService) { pathService = _pathService; gameService = _gameService; playerService = _playerService; starService = _starService; signalBus = _signalBus; enemyScriptableObjectList = enemyList; signalBus.Subscribe <EnemyKillSignal>(EnemyDead); signalBus.Subscribe <StateChangeSignal>(OnTurnStateChange); signalBus.Subscribe <ResetSignal>(ResetEnemy); signalBus.Subscribe <GameStartSignal>(OnGameStart); signalBus.Subscribe <SignalAlertGuards>(AlertEnemies); }
public UserController(IUserService userService, IConfiguration configuration, IStarService starService, IFollowService followService, IPostService postService, IImageService imageService, IOptions <CloudinarySettings> cloudinaryConfig) { _userService = userService; _configuration = configuration; _followService = followService; _postService = postService; _imageService = imageService; _cloudinaryConfig = cloudinaryConfig; _starService = starService; Account account = new Account(_cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret); _cloudinary = new Cloudinary(account); }
public PostController(IStarService starService, IPostService postService, IStepService stepService, IIngredientService ingredientService, IImageService imageService, ILikeService likeService, IOptions <CloudinarySettings> cloudinaryConfig, ICommentService commentService) { _postService = postService; _stepService = stepService; _imageService = imageService; _likeService = likeService; _starService = starService; _commentService = commentService; _ingredientService = ingredientService; _cloudinaryConfig = cloudinaryConfig; Account account = new Account(_cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret); _cloudinary = new Cloudinary(account); }
public ImportJSONCommand(IJSONParser jsonParser, IMovieService movieService, IStarService starService) { if (jsonParser == null) { throw new ArgumentNullException("JSON parser cannnot be null."); } if (movieService == null) { throw new ArgumentNullException("Movie service cannnot be null."); } if (starService == null) { throw new ArgumentNullException("Star service cannnot be null."); } this.jsonParser = jsonParser; this.movieService = movieService; this.starService = starService; }
public StarsController(IFlashMessage flashMessage, IStarService starService) { _flashMessage = flashMessage; _starService = starService; }
public StarController(IStarService star) { this.starService = star; }
public ConstellationsController(IConstellationService constellationService, IStarService starService) { _starService = starService; _constellationService = constellationService; }
public StarsController(IStarService starService) { _starService = starService; }
public StarsController(IStarService starService, IDiscoveryService discoveryService) { this.starService = starService; this.discoveryService = discoveryService; }
public StarsController(IStarService starService, IJwtService jwtService) { this._starService = starService; this._jwtService = jwtService; }