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