Esempio n. 1
0
 public void InjectProperties()
 {
     var a = new ClassA();
     Assert.IsNull(a.DependencyB);
     Factory.Static.Inject(a);
     Assert.IsNotNull(a.DependencyB);
 }
Esempio n. 2
0
 public void RegisterInstanceCreate_areEqual()
 {
     var objectA = new ClassA();
     Factory.Static.Bind<IInterfaceA>(objectA);
     var createdObjectA = Factory.Static.Create<IInterfaceA>();
     Assert.AreSame(objectA, createdObjectA);
 }