Exemplo n.º 1
0
        public void TestCoupledClass()
        {
            PersonSerice       personSerice   = new PersonSerice();
            FullDecoupledClass myCoupledClass = new FullDecoupledClass(personSerice);

            myCoupledClass.run();
        }
Exemplo n.º 2
0
        public void TestDeCoupledClass()
        {
            MkCoderInjector injector = new MkCoderInjector();

            injector.bind <IPersonService, PersonSerice>();
            FullDecoupledClass myCoupledClass = injector.resolve <FullDecoupledClass>();

            myCoupledClass.run();
        }