diff --git a/src/Reface.AppStarter.Tests/RegisteAsFunTest.cs b/src/Reface.AppStarter.Tests/RegisteAsFunTest.cs index c35545c..ed724a6 100644 --- a/src/Reface.AppStarter.Tests/RegisteAsFunTest.cs +++ b/src/Reface.AppStarter.Tests/RegisteAsFunTest.cs @@ -15,6 +15,7 @@ public void Test() TestAppModule testAppModule = new TestAppModule(); var app = appSetup.Start(testAppModule); var container = app.GetAppContainer(); + using (var scope = container.BeginScope("test")) { var t = scope.CreateComponent(); diff --git a/src/Reface.AppStarter.Tests/TestAppModule.cs b/src/Reface.AppStarter.Tests/TestAppModule.cs index f76fb28..7f5150c 100644 --- a/src/Reface.AppStarter.Tests/TestAppModule.cs +++ b/src/Reface.AppStarter.Tests/TestAppModule.cs @@ -11,12 +11,6 @@ namespace Reface.AppStarter.Tests [CL1AppModule] public class TestAppModule : AppModule { - public override void OnUsing(AppSetup setup, IAppModule targetModule) - { - //var container = setup.GetAppContainerBuilder(); - //container.DoNothing(); - } - [ComponentCreator] public IServiceRegistedByAppModule GetServiceRegistedByAppModule() {