예제 #1
0
 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;
 }
예제 #2
0
 public Game(IDtoRepository dtoRepository)
 {
     _dtoRepository = dtoRepository;
     Types          = new TypeRepository(_dtoRepository);
     _level         = new Level(Types);
     Editor         = new LevelEditor(Types, _level);
 }
예제 #3
0
 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;
 }
예제 #4
0
 internal TypeRepository(IDtoRepository repository) => _repository = repository;