Ejemplo n.º 1
0
 public GameEngine(IAppRepository appRepository, IGameValidation gameValidation)
 {
     _appRepository = appRepository;
     _gameValidation = gameValidation;
     _random = new Random();
 }
Ejemplo n.º 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;
 }