public DependentClass( ConcreteOnlyDependency concreteOnlyDependency, IInterfaceOnlyDependency interfaceOnlyDependency, IMixedDependency mixedDependencyInferface, MixedDependency mixedDependencyClass, ValueTypeDependency valueTypeDependency) { ConcreteOnlyDependency = concreteOnlyDependency ?? throw new ArgumentNullException(nameof(concreteOnlyDependency)); InterfaceOnlyDependency = interfaceOnlyDependency ?? throw new ArgumentNullException(nameof(interfaceOnlyDependency)); MixedDependencyInferface = mixedDependencyInferface ?? throw new ArgumentNullException(nameof(mixedDependencyInferface)); MixedDependencyClass = mixedDependencyClass ?? throw new ArgumentNullException(nameof(mixedDependencyClass)); ValueTypeDependency = valueTypeDependency; }
public DependentClass( ConcreteOnlyDependency1 concreteOnlyDependency1, ConcreteOnlyDependency2 concreteOnlyDependency2, IInterfaceOnlyDependency interfaceOnlyDependency, IMixedDependency mixedDependencyInferface, MixedDependency mixedDependencyClass) { ConcreteOnlyDependency1 = concreteOnlyDependency1 ?? throw new ArgumentNullException(nameof(concreteOnlyDependency1)); ConcreteOnlyDependency2 = concreteOnlyDependency2 ?? throw new ArgumentNullException(nameof(concreteOnlyDependency2)); InterfaceOnlyDependency = interfaceOnlyDependency ?? throw new ArgumentNullException(nameof(interfaceOnlyDependency)); MixedDependencyInferface = mixedDependencyInferface ?? throw new ArgumentNullException(nameof(mixedDependencyInferface)); MixedDependencyClass = mixedDependencyClass ?? throw new ArgumentNullException(nameof(mixedDependencyClass)); }