public ComponentC(IComponentA compA, IComponentB compB) { this.compA = compA; this.compB = compB; constructorUsed = 2; }
public TransparentFacade(IComponentA componentA, IComponentB componentB, IComponentC componentC) { _componentA = componentA ?? throw new ArgumentNullException(nameof(componentA)); _componentB = componentB ?? throw new ArgumentNullException(nameof(componentB)); _componentC = componentC ?? throw new ArgumentNullException(nameof(componentC)); }