File tree Expand file tree Collapse file tree 5 files changed +5
-0
lines changed
test/AgileConfig.Server.ServiceTests/sqlite Expand file tree Collapse file tree 5 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ public virtual async Task<ServiceProvider> NewGlobalSp()
5252
5353 var cache = new Mock < IMemoryCache > ( ) ;
5454 IServiceCollection services = new ServiceCollection ( ) ;
55+ services . AddLogging ( ) ;
5556 services . AddScoped ( _ => cache . Object ) ;
5657 services . AddSingleton < IConfiguration > ( config ) ;
5758 services . AddDbConfigInfoFactory ( ) ;
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ private async Task NewGloablSp()
7070 var cache = new Mock < IMemoryCache > ( ) ;
7171 IServiceCollection services = new ServiceCollection ( ) ;
7272 services . AddScoped ( _ => cache . Object ) ;
73+ services . AddLogging ( ) ;
7374 services . AddSingleton < IConfiguration > ( config ) ;
7475 services . AddDbConfigInfoFactory ( ) ;
7576 services . AddFreeSqlFactory ( ) ;
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ private async Task NewGlobalSp()
7575 var cache = new Mock < IMemoryCache > ( ) ;
7676 IServiceCollection services = new ServiceCollection ( ) ;
7777 services . AddScoped ( _ => cache . Object ) ;
78+ services . AddLogging ( ) ;
7879 services . AddSingleton < IConfiguration > ( config ) ;
7980 services . AddDbConfigInfoFactory ( ) ;
8081 services . AddFreeSqlFactory ( ) ;
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ private async Task NewGlobalSp()
7777 services . AddSingleton < IConfiguration > ( config ) ;
7878 services . AddDbConfigInfoFactory ( ) ;
7979 services . AddFreeSqlFactory ( ) ;
80+ services . AddLogging ( ) ;
8081 services . AddRepositories ( ) ;
8182 services . AddBusinessServices ( ) ;
8283
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ private async Task NewGlobalSp()
7979 services . AddSingleton < IConfiguration > ( config ) ;
8080 services . AddDbConfigInfoFactory ( ) ;
8181 services . AddFreeSqlFactory ( ) ;
82+ services . AddLogging ( ) ;
8283 services . AddRepositories ( ) ;
8384 services . AddBusinessServices ( ) ;
8485
You can’t perform that action at this time.
0 commit comments