diff --git a/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/ExceptionUnitTests.cs b/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/ExceptionUnitTests.cs index 3ad94ea..f4aae63 100644 --- a/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/ExceptionUnitTests.cs +++ b/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/ExceptionUnitTests.cs @@ -30,7 +30,7 @@ public async Task TestBulkInsert_Invalid_Creds() { var input = new Input() { - ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord", + ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord;TrustServerCertificate=True", TableName = _tableName, InputData = _json }; @@ -52,7 +52,7 @@ public async Task TestBulkInsert_Invalid_Creds_ReturnErrorMessage() { var input = new Input() { - ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord", + ConnectionString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=WrongPassWord;TrustServerCertificate=True", TableName = _tableName, InputData = _json }; diff --git a/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/UnitTests.cs b/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/UnitTests.cs index aab148e..317ab5f 100644 --- a/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/UnitTests.cs +++ b/Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/UnitTests.cs @@ -17,7 +17,7 @@ docker exec -it sql1 "bash" GO */ - private static readonly string _connString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=Salakala123!"; + private static readonly string _connString = "Server=127.0.0.1,1433;Database=Master;User Id=SA;Password=Salakala123!;TrustServerCertificate=True"; private static readonly string _tableName = "TestTable"; private static readonly string _json = @"[ { @@ -69,7 +69,7 @@ public void CleanUp() [TestMethod] public async Task TestBulkInsert_FireTriggers() - { + { var transactionLevels = new List() { SqlTransactionIsolationLevel.Unspecified, SqlTransactionIsolationLevel.Serializable, @@ -102,7 +102,7 @@ public async Task TestBulkInsert_FireTriggers() await MicrosoftSQL.BulkInsert(_input, options, default); Assert.AreEqual(6, GetRowCount()); - + CleanUp(); } }