Пример #1
0
 public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency)
 {
     if (null == dependency)
     {
         throw new ArgumentNullException();
     }
     if (null == anotherDependency)
     {
         throw new ArgumentNullException();
     }
 }
Пример #2
0
            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)
 {
     // ...
 }