Skip to content

Commit

Permalink
Merge pull request #209 from dotnetcore/publish
Browse files Browse the repository at this point in the history
fix test cases
  • Loading branch information
kklldog authored Feb 23, 2025
2 parents ef0ce70 + 18c2dda commit 1aeea06
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public virtual async Task<ServiceProvider> NewGlobalSp()

var cache = new Mock<IMemoryCache>();
IServiceCollection services = new ServiceCollection();
services.AddLogging();
services.AddScoped(_ => cache.Object);
services.AddSingleton<IConfiguration>(config);
services.AddDbConfigInfoFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ private async Task NewGloablSp()
var cache = new Mock<IMemoryCache>();
IServiceCollection services = new ServiceCollection();
services.AddScoped(_ => cache.Object);
services.AddLogging();
services.AddSingleton<IConfiguration>(config);
services.AddDbConfigInfoFactory();
services.AddFreeSqlFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private async Task NewGlobalSp()
var cache = new Mock<IMemoryCache>();
IServiceCollection services = new ServiceCollection();
services.AddScoped(_ => cache.Object);
services.AddLogging();
services.AddSingleton<IConfiguration>(config);
services.AddDbConfigInfoFactory();
services.AddFreeSqlFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private async Task NewGlobalSp()
services.AddSingleton<IConfiguration>(config);
services.AddDbConfigInfoFactory();
services.AddFreeSqlFactory();
services.AddLogging();
services.AddRepositories();
services.AddBusinessServices();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ private async Task NewGlobalSp()
services.AddSingleton<IConfiguration>(config);
services.AddDbConfigInfoFactory();
services.AddFreeSqlFactory();
services.AddLogging();
services.AddRepositories();
services.AddBusinessServices();

Expand Down

0 comments on commit 1aeea06

Please sign in to comment.