Exemplo n.º 1
0
 public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency)
 {
     if (null == dependency)
     {
         throw new ArgumentNullException();
     }
     if (null == anotherDependency)
     {
         throw new ArgumentNullException();
     }
 }
Exemplo n.º 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)
 {
     // ...
 }