public void TestCoupledClass() { PersonSerice personSerice = new PersonSerice(); FullDecoupledClass myCoupledClass = new FullDecoupledClass(personSerice); myCoupledClass.run(); }
public void TestDeCoupledClass() { MkCoderInjector injector = new MkCoderInjector(); injector.bind <IPersonService, PersonSerice>(); FullDecoupledClass myCoupledClass = injector.resolve <FullDecoupledClass>(); myCoupledClass.run(); }