18 using NUnit.Framework;
20 namespace Deveel.Data.Services {
28 var child = parent.OpenScope(
"child");
33 Assert.IsNotNull(childService);
36 Assert.IsNotNull(parentService);
39 Assert.AreEqual(parentService, childService);
47 parent.RegisterInstance(instance);
49 var child = parent.OpenScope(
"child");
53 Assert.IsNotNull(childService);
55 Assert.AreEqual(instance, childService);
63 parent.RegisterInstance(instance);
65 var child = parent.OpenScope(
"child");
69 Assert.IsNotEmpty(services);
70 Assert.AreEqual(1, services.Count());
78 var child = parent.OpenScope(
"child");
83 Assert.IsNotNull(service2);
84 Assert.IsNotNull(service2.Service1);
void RegisterInstanceAndResolveAllFromChild()
void ResolveFromChildWithParentService()
void RegisterInstanceAndResolveFromChild()
TestService2(TestService1 service1)
void RegisterAndResolveFromChild()