修复单元测试异常

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

@@ -21,6 +21,7 @@ namespace OpenAuth.App.Test
var serviceCollection = GetService();
serviceCollection.AddMemoryCache();
serviceCollection.AddOptions();
serviceCollection.AddLogging();
var optionMock = new Mock<IOptions<AppSetting>>();
optionMock.Setup(x => x.Value).Returns(new AppSetting { DbType = Define.DBTYPE_MYSQL});