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;
    }
Ejemplo n.º 2
0
 public Processor(IDep1 dependency1, IDep2 dependency2)
 {
     _dependency1 = dependency1;
     _dependency2 = dependency2;
 }