Example #1
0
 public GameEngine(IAppRepository appRepository, IGameValidation gameValidation)
 {
     _appRepository = appRepository;
     _gameValidation = gameValidation;
     _random = new Random();
 }
Example #2
0
 public GameService(IMapper mapper, IGameRepository gameRepository, IGameValidation gameValidation)
 {
     _mapper         = mapper;
     _gameRepository = gameRepository;
     _gameValidation = gameValidation;
 }
 public MoveNameValidationAttribute()
 {
     _gameValidation = GlobalConfiguration.Configuration.DependencyResolver.GetService(typeof(IGameValidation)) as IGameValidation;
 }