public Run() { var dependency = new Dependency1(); dependency.DoSomething(); }
public void DoSomething(Dependency1 d) { d.DoSomething(); }
public void DoSomething(Dependency1 d) { //var d = new Dependency1(); d.DoSomething(); }