Exemplo n.º 1
0
 public ResourcesService(IResourcesRepository repository, ICyclicOperationRepository cyclicOperationRepository, IOperationsRepository operationRepository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _cyclicOperationRepository = cyclicOperationRepository ?? throw new ArgumentNullException(nameof(cyclicOperationRepository));
     _operationRepository       = operationRepository ?? throw new ArgumentNullException(nameof(operationRepository));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Exemplo n.º 2
0
 public CyclicOperationsService(ICyclicOperationRepository repository, IMapper mapper)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }