Skip to content

Commit

Permalink
Update 人大金仓 unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
DotNetNext committed Apr 4, 2024
1 parent cfa4c6e commit fb6945a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Src/Asp.NetCore2/KdbndpTest/UnitTest/UThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public partial class NewUnitTest
}
}
});
public static SqlSugarScope ssDb => new SqlSugarScope(new ConnectionConfig()
public static SqlSugarClient ssDb => new SqlSugarClient(new ConnectionConfig()
{
DbType = DbType.Kdbndp,
ConnectionString = Config.ConnectionString,
Expand All @@ -41,7 +41,7 @@ public partial class NewUnitTest
}
}
});
public static SqlSugarClient singleDb = new SqlSugarClient(new ConnectionConfig()
public static SqlSugarScope singleDb = new SqlSugarScope(new ConnectionConfig()
{
DbType = DbType.Kdbndp,
ConnectionString = Config.ConnectionString,
Expand Down
2 changes: 1 addition & 1 deletion Src/Asp.NetCore2/KdbndpTest/UnitTest/UValidate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class UValidate
{
public static void Check(object a, object b, object name)
{
if (a?.ToString()?.Trim() != b?.ToString()?.Trim())
if (a?.ToString()?.Replace(" ","").Trim().ToLower() != b?.ToString().Replace(" ", "")?.Trim().ToLower())
{
throw new Exception(name + " error");
}
Expand Down

0 comments on commit fb6945a

Please sign in to comment.