public void TestDependency1() { Injector depInjector = new Injector(); Dependency1 dep = depInjector.CreateDependency1(); dep.DoStuff(); }
public void UseDependency() { ConsoleLogService logSvc = new ConsoleLogService(LogType.Info); OutlookEmailService emailSvc = new OutlookEmailService(); Dependency1 dep = new Dependency1(logSvc, emailSvc); dep.DoStuff(); }