public Car1Factory(IDep1 dep1, IDep2 dep2, IDep3 dep3)
    {
        if (dep1 == null)
        {
            throw new ArgumentNullException("dep1");
        }
        if (dep2 == null)
        {
            throw new ArgumentNullException("dep2");
        }
        if (dep3 == null)
        {
            throw new ArgumentNullException("dep3");
        }

        this.dep1 = dep1;
        this.dep2 = dep2;
        this.dep3 = dep3;
    }
Exemplo n.º 2
0
 public Processor(IDep1 dependency1, IDep2 dependency2)
 {
     _dependency1 = dependency1;
     _dependency2 = dependency2;
 }
Exemplo n.º 3
0
 public TestObj(IDep dep, IDep2 dep2, string sDep)
 {
     this.Dep  = dep;
     this.Dep2 = dep2;
     this.SDep = sDep;
 }
Exemplo n.º 4
0
 public TestObj(IDep dep, IDep2 dep2)
 {
     this.Dep  = dep;
     this.Dep2 = dep2;
 }