public AwesomeClass(IDependency1 dep1, IDependency2 dep2, IDependency3 dep3, IDependency4 dep4)
 {
     _dep1 = dep1;
     _dep2 = dep2;
     _dep3 = dep3;
     _dep4 = dep4;
 }
Ejemplo n.º 2
0
 public Fake(IDependency1 dependency1,
             IDependency2 dependency2,
             IDependency3 dependency3,
             IDependency4 dependency4)
 {
     _dependency1 = dependency1;
     _dependency2 = dependency2;
     _dependency3 = dependency3;
     _dependency4 = dependency4;
 }
Ejemplo n.º 3
0
 public Infrastructure(IDependency1 d1,
                       IDependency2 d2,
                       IDependency3 d3,
                       IDependency4 d4)
 {
     D1 = d1;
     D2 = d2;
     D3 = d3;
     D4 = d4;
 }
Ejemplo n.º 4
0
        public Infrastructure(IDependency1 d1, IDependency2 d2, IDependency3 d3, IDependency4 d4)
        {
            D1 = d1;
            D2 = d2;
            D3 = d3;
            D4 = d4;

            Console.WriteLine($"Dependency1 : {D1.GetHashCode()}");
            Console.WriteLine($"Dependency2 : {D2.GetHashCode()}");
            Console.WriteLine($"Dependency3 : {D3.GetHashCode()}");
            Console.WriteLine($"Dependency4 : {D4.GetHashCode()}");
        }
Ejemplo n.º 5
0
 public Infrastructure(IDependency1 d1, IDependency2 d2,
                       IDependency3 d3, IDependency4 d4)
 {
     Console.WriteLine("使用了需要 4 個參數的建構函式來生成物件");
 }
Ejemplo n.º 6
0
 public Infrastructure(IDependency1 d1, IDependency2 d2,
                       IDependency3 d3, IDependency4 d4)
 {
     Console.WriteLine("four");
 }