// Method injection public void DoStuff(C1 c1, C2 c2, C3 c3) { c1.DoStuff(); c2.DoStuff(); c3.DoStuff(); }
public void DoStuff(C1 first, C2 second, C3 third) { c1 = first; c2 = second; c3 = third; c1.DoStuff(); c2.DoStuff(); c3.DoStuff(); }
public void DoStuff() { c1.DoStuff(); c2.DoStuff(); c3.DoStuff(); }