public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency) { if (null == dependency) { throw new ArgumentNullException(); } if (null == anotherDependency) { throw new ArgumentNullException(); } }
public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency) { if (null == dependency) throw new ArgumentNullException(); if (null == anotherDependency) throw new ArgumentNullException(); this.dependency = dependency; }
public SomeFooHandler(IFooDependency dependency) { _dependency = dependency; }
public FooController(IFooDependency dependency) { // ... }