public InformationRepository( IElasticClient elasticClient, IAttachmentProcessor attachmentProcessor, IItemMetadataProvider itemMetadataProvider) { _elasticClient = elasticClient ?? throw new ArgumentNullException(nameof(elasticClient)); _attachmentProcessor = attachmentProcessor ?? throw new ArgumentNullException(nameof(attachmentProcessor)); _itemMetadataProvider = itemMetadataProvider ?? throw new ArgumentNullException(nameof(itemMetadataProvider)); }
public AdminController(IDataProcessor dataProcessor, IAttachmentProcessor attachmentProcessor, ILoginManager loginManager) { _dataProcessor = dataProcessor ?? throw new ArgumentNullException(nameof(dataProcessor)); _attachmentProcessor = attachmentProcessor ?? throw new ArgumentNullException(nameof(attachmentProcessor)); _loginManager = loginManager ?? throw new ArgumentNullException(nameof(loginManager)); }