public SomeClass(IFirstAction firstAction) { FirstAction = firstAction ?? throw new ArgumentNullException(nameof(firstAction)); }
public MainClass(IFirstAction firstAction, ISecondAction secondAction) { _firstAction = firstAction ?? throw new ArgumentNullException(nameof(firstAction)); _secondAction = secondAction ?? throw new ArgumentNullException(nameof(secondAction)); }