Update DI_Test.cs

This commit is contained in:
ansonzhang 2021-01-14 15:55:15 +08:00 committed by GitHub
parent 6d4b1b908d
commit c5eb792873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ namespace Blog.Core.Tests
{
var basePath = Microsoft.DotNet.PlatformAbstractions.ApplicationEnvironment.ApplicationBasePath;
IServiceCollection services = new ServiceCollection();
IServiceCollection services = new ServiceCollection().AddLogging();
services.AddAutoMapper(typeof(Startup));
services.AddScoped<SqlSugar.ISqlSugarClient>(o =>