public ResultService(IResultsRepository resultsRepository, ICpuRepository cpuRepository, ITopologyRepository topologyRepository, IIdProvider idProvider) { _resultsRepository = resultsRepository ?? throw new ArgumentNullException(nameof(resultsRepository)); _cpuRepository = cpuRepository ?? throw new ArgumentNullException(nameof(cpuRepository)); _idProvider = idProvider ?? throw new ArgumentNullException(nameof(idProvider)); _topologyRepository = topologyRepository ?? throw new ArgumentNullException(nameof(topologyRepository)); }
public DynamicPortsController(IMapper mapper, IConfiguration configuration, ITopologyRepository repository, TopoEditContext topoEditContext) { this.mapper = mapper; this.configuration = configuration; this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.topoEditContext = topoEditContext ?? throw new ArgumentNullException(nameof(topoEditContext)); }