public ApplicationService(IQueryPending queryPending, IFileService fileService) { _queryPending = queryPending ?? throw new ArgumentNullException(nameof(queryPending)); _fileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); }
public FileService(IOptions <ConnectionStrings> connectionString, IQueryPending queryPending, IOptions <IOSettings> ioSettings) { _connectionString = connectionString ?? throw new ArgumentNullException(nameof(connectionString)); _queryPending = queryPending ?? throw new ArgumentNullException(nameof(queryPending)); _ioSettings = ioSettings ?? throw new ArgumentNullException(nameof(ioSettings)); }