File tree 1 file changed +9
-2
lines changed
src/TestBase/Abp.TestBase/TestBase
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,25 @@ public abstract class AbpIntegratedTestBase : IDisposable
25
25
26
26
private readonly AbpBootstrapper _bootstrapper ;
27
27
28
- protected AbpIntegratedTestBase ( )
28
+ protected AbpIntegratedTestBase ( bool manualInitialization = false )
29
29
{
30
30
LocalIocManager = new IocManager ( ) ;
31
+ _bootstrapper = new AbpBootstrapper ( LocalIocManager ) ;
32
+ if ( ! manualInitialization )
33
+ {
34
+ Initialize ( ) ;
35
+ }
36
+ }
31
37
38
+ protected void Initialize ( )
39
+ {
32
40
LocalIocManager . Register < IModuleFinder , TestModuleFinder > ( ) ;
33
41
LocalIocManager . Register < IAbpSession , TestAbpSession > ( ) ;
34
42
35
43
AddModules ( LocalIocManager . Resolve < TestModuleFinder > ( ) . Modules ) ;
36
44
37
45
PreInitialize ( ) ;
38
46
39
- _bootstrapper = new AbpBootstrapper ( LocalIocManager ) ;
40
47
_bootstrapper . Initialize ( ) ;
41
48
42
49
AbpSession = LocalIocManager . Resolve < TestAbpSession > ( ) ;
You can’t perform that action at this time.
0 commit comments