public EnumerationService(IDtoRepository<Enumeration, EnumerationDto> enumerationDtoRepository, IGccRepository<Enumeration> enumerationRepository) { Check.Require(enumerationDtoRepository != null, "EnumerationDto repository may not be null"); Check.Require(enumerationRepository != null, "Enumeration repository may not be null"); this.enumerationDtoRepository = enumerationDtoRepository; this.enumerationRepository = enumerationRepository; }
public Game(IDtoRepository dtoRepository) { _dtoRepository = dtoRepository; Types = new TypeRepository(_dtoRepository); _level = new Level(Types); Editor = new LevelEditor(Types, _level); }
public ShipsController(IDtoRepository<ShipViewModel> shipRepository, IBus bus) { if (shipRepository == null) throw new ArgumentNullException("shipRepository"); if (bus == null) throw new ArgumentNullException("bus"); _shipRepository = shipRepository; this.bus = bus; }
internal TypeRepository(IDtoRepository repository) => _repository = repository;