Пример #1
0
        public void TestDependency1()
        {
            Injector    depInjector = new Injector();
            Dependency1 dep         = depInjector.CreateDependency1();

            dep.DoStuff();
        }
Пример #2
0
        public void UseDependency()
        {
            ConsoleLogService   logSvc   = new ConsoleLogService(LogType.Info);
            OutlookEmailService emailSvc = new OutlookEmailService();
            Dependency1         dep      = new Dependency1(logSvc, emailSvc);

            dep.DoStuff();
        }