Пример #1
0
 public TeamDomainModelImportService(
     TeamDomainService domainService,
     DataService dataService,
     IIntegerIdentityFactory <TeamEntity> teamEntityFactory,
     IMapperService mapperService,
     CarNumberDataEntitiesToCarNumbersObjectMapper carNumbersMapper)
 {
     _domainService     = domainService ?? throw new ArgumentNullException(nameof(domainService));
     _dataService       = dataService ?? throw new ArgumentNullException(nameof(dataService));
     _teamEntityFactory = teamEntityFactory ?? throw new ArgumentNullException(nameof(teamEntityFactory));
     _mapperService     = mapperService ?? throw new ArgumentNullException(nameof(mapperService));
     _carNumbersMapper  = carNumbersMapper ?? throw new ArgumentNullException(nameof(carNumbersMapper));
 }
Пример #2
0
 public SquadHandler(ISquadRepository squadRepository, TeamDomainService teamDomainService)
 {
     _squadRepository   = squadRepository;
     _teamDomainService = teamDomainService;
 }