Esempio n. 1
0
 public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency)
 {
     if (null == dependency)
     {
         throw new ArgumentNullException();
     }
     if (null == anotherDependency)
     {
         throw new ArgumentNullException();
     }
 }
Esempio n. 2
0
            public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency)
            {
                if (null == dependency) throw new ArgumentNullException();
                if (null == anotherDependency) throw new ArgumentNullException();

                this.dependency = dependency;
            }