Commit 323f3515 authored by Savorboard's avatar Savorboard

fixed unit test error.

parent dd741532
......@@ -21,10 +21,10 @@ namespace DotNetCore.CAP.SqlServer.Test
{
Logger = new Mock<ILogger<SqlServerStorage>>().Object;
CapOptions = new Mock<CapOptions>().Object;
SqlSeverOptions = new Mock<SqlServerOptions>()
.SetupProperty(x => x.ConnectionString, ConnectionUtil.GetConnectionString())
.Object;
SqlSeverOptions = new SqlServerOptions()
{
ConnectionString = ConnectionUtil.GetConnectionString()
};
DiagnosticProcessorObserver = new Mock<DiagnosticProcessorObserver>().Object;
InitializeDatabase();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment