diff --git a/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj b/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
index 391217f..2d05743 100644
--- a/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
+++ b/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
@@ -15,7 +15,6 @@
Orleans OrleansProviders MongoDB
snupkg
net8.0
- 8.1.0
@@ -24,7 +23,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/Test/Host/Orleans.Providers.MongoDB.Test.Host.csproj b/Test/Host/Orleans.Providers.MongoDB.Test.Host.csproj
index 5fb9dc0..289ff48 100644
--- a/Test/Host/Orleans.Providers.MongoDB.Test.Host.csproj
+++ b/Test/Host/Orleans.Providers.MongoDB.Test.Host.csproj
@@ -6,9 +6,9 @@
-
-
-
+
+
+
diff --git a/Test/Host/Program.cs b/Test/Host/Program.cs
index e7b0c7f..0521380 100644
--- a/Test/Host/Program.cs
+++ b/Test/Host/Program.cs
@@ -2,7 +2,6 @@
using System.Linq;
using System.Net;
using System.Threading.Tasks;
-using EphemeralMongo;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
@@ -10,6 +9,7 @@
using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Conventions;
using MongoDB.Bson.Serialization.Serializers;
+using MongoSandbox;
using Newtonsoft.Json;
using Orleans.Configuration;
using Orleans.Hosting;
@@ -25,7 +25,7 @@ public static async Task Main(string[] args)
{
var createShardKey = false;
- using var mongoRunner = MongoRunner.Run();
+ using var mongoRunner = MongoRunner.Run(new MongoRunnerOptions { KillMongoProcessesWhenCurrentProcessExits = true });
Console.WriteLine("MongoDB ConnectionString: {0}", mongoRunner.ConnectionString);
@@ -216,8 +216,6 @@ private static void ApplyBsonConfiguration()
},
t => true);
- // http://mongodb.github.io/mongo-csharp-driver/2.11/reference/bson/guidserialization/guidrepresentationmode/guidrepresentationmode/
- BsonDefaults.GuidRepresentationMode = GuidRepresentationMode.V3;
BsonSerializer.RegisterSerializer(new GuidSerializer(GuidRepresentation.Standard));
}
}
diff --git a/UnitTest/Fixtures/MongoDatabaseFixture.cs b/UnitTest/Fixtures/MongoDatabaseFixture.cs
index 007b330..4039062 100644
--- a/UnitTest/Fixtures/MongoDatabaseFixture.cs
+++ b/UnitTest/Fixtures/MongoDatabaseFixture.cs
@@ -1,6 +1,6 @@
using System;
-using EphemeralMongo;
using MongoDB.Driver;
+using MongoSandbox;
using Orleans.Providers.MongoDB.Utils;
namespace Orleans.Providers.MongoDB.UnitTest.Fixtures
diff --git a/UnitTest/Orleans.Providers.MongoDB.UnitTest.csproj b/UnitTest/Orleans.Providers.MongoDB.UnitTest.csproj
index 5b55b0c..83628fe 100644
--- a/UnitTest/Orleans.Providers.MongoDB.UnitTest.csproj
+++ b/UnitTest/Orleans.Providers.MongoDB.UnitTest.csproj
@@ -1,4 +1,4 @@
-
+
net8.0
true
@@ -9,9 +9,8 @@
-
-
-
+
+