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