コード例 #1
0
ファイル: GlowerTests.cs プロジェクト: victorarias/glower
 public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency)
 {
     if (null == dependency)
     {
         throw new ArgumentNullException();
     }
     if (null == anotherDependency)
     {
         throw new ArgumentNullException();
     }
 }
コード例 #2
0
ファイル: MoqerTests.cs プロジェクト: victorarias/MagicMoq
            public Foo(IFooDependency dependency, IAnotherFooDependency anotherDependency)
            {
                if (null == dependency) throw new ArgumentNullException();
                if (null == anotherDependency) throw new ArgumentNullException();

                this.dependency = dependency;
            }
コード例 #3
0
 public SomeFooHandler(IFooDependency dependency)
 {
     _dependency = dependency;
 }
コード例 #4
0
 public FooController(IFooDependency dependency)
 {
     // ...
 }