コード例 #1
0
 public GameService(
     IGameRepository gameRepository,
     IImageRepository imageRepository,
     IRoundRepository roundRepository,
     IRepository <ImageInRoundEntity> imageInRoundRepository,
     IRepository <UserEntity> userRepository,
     IMetaDataRepository metaDataRepository)
 {
     _gameRepository         = gameRepository;
     _imageRepository        = imageRepository;
     _roundRepository        = roundRepository;
     _imageInRoundRepository = imageInRoundRepository;
     _userRepository         = userRepository;
     _metaDataRepository     = metaDataRepository;
     IMAGES_PER_ROUND        = _metaDataRepository.GetByName <int>(MetaDataEnum.ImagesPerRound);
     ROUNDS_PER_GAME         = _metaDataRepository.GetByName <int>(MetaDataEnum.RoundsPerGame);
 }