public SynchronizationFunctions(IOptionsSource optionsSource, IAmazonFunctionsForSynchronization amazonFunctions, IComparisonFunctions comparisonFunctions) { if (optionsSource is null) { throw new ArgumentNullException(nameof(optionsSource)); } _options = optionsSource.Options; _amazonFunctions = amazonFunctions ?? throw new ArgumentNullException(nameof(amazonFunctions)); _comparisonFunctions = comparisonFunctions ?? throw new ArgumentNullException(nameof(comparisonFunctions)); }
public ComparisonFunctionsLoggingDecorator(IComparisonFunctions comparisonFunctions, ILog <IComparisonFunctions> log) { _inner = comparisonFunctions ?? throw new ArgumentNullException(nameof(comparisonFunctions)); _log = log ?? throw new ArgumentNullException(nameof(log)); }