From 75b894cb2a949e370791c75a6255fc690ab0e386 Mon Sep 17 00:00:00 2001 From: Alexandre SPIESER Date: Wed, 10 Apr 2019 22:07:15 +0100 Subject: [PATCH] ran tests + removed obsolete methods --- .../Infrastructure/MongoDbDocumentTestBase.cs | 2 +- .../MongoDbTKeyDocumentTestBase.cs | 2 +- IntegrationTests/App.config | 2 +- .../Infrastructure/MongoDBDocumentTestBase.cs | 2 +- .../MongoDbTKeyDocumentTestBase.cs | 2 +- IntegrationTests/IntegrationTests.csproj | 35 +++++++++++-------- IntegrationTests/packages.config | 13 ++++--- 7 files changed, 31 insertions(+), 27 deletions(-) diff --git a/CoreIntegrationTests/Infrastructure/MongoDbDocumentTestBase.cs b/CoreIntegrationTests/Infrastructure/MongoDbDocumentTestBase.cs index c70056c..0c333a9 100644 --- a/CoreIntegrationTests/Infrastructure/MongoDbDocumentTestBase.cs +++ b/CoreIntegrationTests/Infrastructure/MongoDbDocumentTestBase.cs @@ -235,7 +235,7 @@ namespace CoreIntegrationTests.Infrastructure SUT.AddOne(document); // Act var cursor = SUT.GetCursor(x => x.Id.Equals(document.Id), PartitionKey); - var count = cursor.Count(); + var count = cursor.CountDocuments(); // Assert Assert.True(1 == count, GetTestName()); } diff --git a/CoreIntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs b/CoreIntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs index 9d99665..e4f2051 100644 --- a/CoreIntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs +++ b/CoreIntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs @@ -236,7 +236,7 @@ namespace CoreIntegrationTests.Infrastructure SUT.AddOne(document); // Act var cursor = SUT.GetCursor(x => x.Id.Equals(document.Id), PartitionKey); - var count = cursor.Count(); + var count = cursor.CountDocuments(); // Assert Assert.True (1 == count, GetTestName()); } diff --git a/IntegrationTests/App.config b/IntegrationTests/App.config index fb9836a..beb386a 100644 --- a/IntegrationTests/App.config +++ b/IntegrationTests/App.config @@ -11,7 +11,7 @@ - + diff --git a/IntegrationTests/Infrastructure/MongoDBDocumentTestBase.cs b/IntegrationTests/Infrastructure/MongoDBDocumentTestBase.cs index ebd66e2..ea3dfd6 100644 --- a/IntegrationTests/Infrastructure/MongoDBDocumentTestBase.cs +++ b/IntegrationTests/Infrastructure/MongoDBDocumentTestBase.cs @@ -202,7 +202,7 @@ namespace IntegrationTests.Infrastructure SUT.AddOne(document); // Act var cursor = SUT.GetCursor(x => x.Id.Equals(document.Id), PartitionKey); - var count = cursor.Count(); + var count = cursor.CountDocuments(); // Assert Assert.AreEqual(1, count, GetTestName()); } diff --git a/IntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs b/IntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs index 3d0cf8c..e6b87d9 100644 --- a/IntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs +++ b/IntegrationTests/Infrastructure/MongoDbTKeyDocumentTestBase.cs @@ -204,7 +204,7 @@ namespace IntegrationTests.Infrastructure SUT.AddOne(document); // Act var cursor = SUT.GetCursor(x => x.Id.Equals(document.Id), PartitionKey); - var count = cursor.Count(); + var count = cursor.CountDocuments(); // Assert Assert.AreEqual(1, count, GetTestName()); } diff --git a/IntegrationTests/IntegrationTests.csproj b/IntegrationTests/IntegrationTests.csproj index c5b56bc..9a6c6b3 100644 --- a/IntegrationTests/IntegrationTests.csproj +++ b/IntegrationTests/IntegrationTests.csproj @@ -30,33 +30,32 @@ 4 - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\DnsClient.dll + + ..\packages\DnsClient.1.2.0\lib\net45\DnsClient.dll - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\MongoDB.Bson.dll + + ..\packages\MongoDB.Bson.2.8.0\lib\net452\MongoDB.Bson.dll - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\MongoDB.Driver.dll + + ..\packages\MongoDB.Driver.2.8.0\lib\net452\MongoDB.Driver.dll - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\MongoDB.Driver.Core.dll - - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\MongoDbGenericRepository.dll + + ..\packages\MongoDB.Driver.Core.2.8.0\lib\net452\MongoDB.Driver.Core.dll ..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\System.Buffers.dll + + ..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll - - ..\packages\MongoDbGenericRepository.1.3.8\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + + ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll + True + True @@ -86,5 +85,11 @@ + + + {efc776c4-2af3-440c-be80-3fbe335817a5} + MongoDbGenericRepository + + \ No newline at end of file diff --git a/IntegrationTests/packages.config b/IntegrationTests/packages.config index 94c72ae..1d92b40 100644 --- a/IntegrationTests/packages.config +++ b/IntegrationTests/packages.config @@ -1,12 +1,11 @@  - - - - - + + + + - - + + \ No newline at end of file