Ejemplo n.º 1
0
 public GamesController(IGameRepository gameRepository, IGameMapRepository gameMapRepository, ITankModelRepository tankModelRepository, IMapper mapper)
 {
     _gameRepository      = gameRepository;
     _gameMapRepository   = gameMapRepository;
     _tankModelRepository = tankModelRepository;
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));;
 }
Ejemplo n.º 2
0
 public GameMapsController(IGameMapRepository gameMapRepository, IMapper mapper)
 {
     _gameMapRepository = gameMapRepository;
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }