public GetLogisticCenterIdDbQuery( IGetEdgesQuery getEdges, IGetNodesQuery getNodes, IDbConnectionFactory connectionFactory) { this.getEdges = getEdges ?? throw new ArgumentNullException(nameof(getEdges)); this.connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory)); this._getNodes = getNodes ?? throw new ArgumentNullException(nameof(getNodes)); }
public NodesController( IGetNodesQuery getNodes, ICreateNodeCommand createNode, IGetNodeByIdQuery getNodeById, IUpdateNodeCommand updateNode, IDeleteNodeCommand deleteNode, IGetLogisticCenterIdQuery getLogisticCenterId) { this.getNodes = getNodes ?? throw new ArgumentNullException(nameof(getNodes)); this.createNode = createNode ?? throw new ArgumentNullException(nameof(createNode)); this.getNodeById = getNodeById ?? throw new ArgumentNullException(nameof(getNodeById)); this.updateNode = updateNode ?? throw new ArgumentNullException(nameof(updateNode)); this.deleteNode = deleteNode ?? throw new ArgumentNullException(nameof(deleteNode)); this.getLogisticCenterId = getLogisticCenterId ?? throw new ArgumentNullException(nameof(getLogisticCenterId)); }