From fcbd252b54dfb515cf5632eedad461f1d4398dd6 Mon Sep 17 00:00:00 2001 From: ShimizuShiori <116971263@qq.com> Date: Sun, 5 Apr 2020 21:36:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Reface.AppStarter.Tests/RegisteAsFunTest.cs | 1 + src/Reface.AppStarter.Tests/TestAppModule.cs | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) 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() {