修复单元测试异常

This commit is contained in:
ÂëÉñ
2021-01-09 19:59:01 +08:00
committed by yubaolee
parent 5f8ef13037
commit 1228c6e875
4 changed files with 27 additions and 13 deletions

View File

@@ -22,6 +22,7 @@ namespace OpenAuth.Repository.Test
var serviceCollection = GetService();
serviceCollection.AddMemoryCache();
serviceCollection.AddOptions();
serviceCollection.AddLogging();
serviceCollection.AddScoped(typeof(IRepository<,>), typeof(BaseRepository<,>));
serviceCollection.AddScoped(typeof(IUnitWork<>), typeof(UnitWork<>));