Browse Source

update tests.

master
Savorboard 7 years ago
parent
commit
65e766f8f1
3 changed files with 6 additions and 3 deletions
  1. +2
    -1
      test/DotNetCore.CAP.MySql.Test/MySqlStorageConnectionTest.cs
  2. +2
    -1
      test/DotNetCore.CAP.PostgreSql.Test/PostgreSqlStorageConnectionTest.cs
  3. +2
    -1
      test/DotNetCore.CAP.SqlServer.Test/SqlServerStorageConnectionTest.cs

+ 2
- 1
test/DotNetCore.CAP.MySql.Test/MySqlStorageConnectionTest.cs View File

@@ -15,7 +15,8 @@ namespace DotNetCore.CAP.MySql.Test
public MySqlStorageConnectionTest()
{
var options = GetService<MySqlOptions>();
_storage = new MySqlStorageConnection(options);
var capOptions = GetService<CapOptions>();
_storage = new MySqlStorageConnection(options, capOptions);
}

[Fact]


+ 2
- 1
test/DotNetCore.CAP.PostgreSql.Test/PostgreSqlStorageConnectionTest.cs View File

@@ -15,7 +15,8 @@ namespace DotNetCore.CAP.PostgreSql.Test
public PostgreSqlStorageConnectionTest()
{
var options = GetService<PostgreSqlOptions>();
_storage = new PostgreSqlStorageConnection(options);
var capOptions = GetService<CapOptions>();
_storage = new PostgreSqlStorageConnection(options,capOptions);
}

[Fact]


+ 2
- 1
test/DotNetCore.CAP.SqlServer.Test/SqlServerStorageConnectionTest.cs View File

@@ -15,7 +15,8 @@ namespace DotNetCore.CAP.SqlServer.Test
public SqlServerStorageConnectionTest()
{
var options = GetService<SqlServerOptions>();
_storage = new SqlServerStorageConnection(options);
var capOptions = GetService<CapOptions>();
_storage = new SqlServerStorageConnection(options, capOptions);
}

[Fact]


Loading…
Cancel
Save