Skip to content

Commit

Permalink
Bump HIC.RDMP.Plugin and MongoDB.Driver (#1944)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Sep 27, 2024
1 parent 454ad5e commit 935dc13
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<PackageVersion Include="Equ" Version="2.3.0" />
<PackageVersion Include="HIC.DicomTypeTranslation" Version="4.1.3" />
<PackageVersion Include="HIC.FAnsiSql" Version="3.2.6" />
<PackageVersion Include="HIC.RDMP.Dicom" Version="7.0.8" />
<PackageVersion Include="HIC.RDMP.Plugin" Version="8.2.3" />
<PackageVersion Include="HIC.RDMP.Dicom" Version="7.1.0" />
<PackageVersion Include="HIC.RDMP.Plugin" Version="8.3.0" />
<PackageVersion Include="IsIdentifiable" Version="0.4.0" />
<PackageVersion Include="LibArchive.Net" Version="0.1.5" />
<PackageVersion Include="LineReader" Version="0.1.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.11.0" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageVersion Include="MongoDB.Bson" Version="2.29.0" />
<PackageVersion Include="MongoDB.Driver" Version="2.28.0" />
<PackageVersion Include="MongoDB.Driver" Version="2.29.0" />
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
<PackageVersion Include="NLog" Version="5.3.4" />
<PackageVersion Include="RabbitMQ.Client" Version="6.8.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using Rdmp.Core.CommandExecution;
using Tests.Common;
using DatabaseType = FAnsi.DatabaseType;

Expand Down Expand Up @@ -313,7 +314,7 @@ public void IntegrationTest_HappyPath_WithIsolation(DatabaseType databaseType, T

new DicomFile(ds2).Save(Path.Combine(dir.FullName, "def.dcm"));

var checks = new ProcessTaskChecks(_helper.LoadMetadata);
var checks = new ProcessTaskChecks(_helper.LoadMetadata, new ThrowImmediatelyActivator(RepositoryLocator));
checks.Check(new AcceptAllCheckNotifier());

RunTest(dir, 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,14 @@ private sealed class MockExtractCollection<TKey, TVal> : StubMongoCollection<TKe
return mockCursor.Object;
}

BsonDocument rendered = filter.Render(BsonSerializer.SerializerRegistry.GetSerializer<TVal>(), BsonSerializer.SerializerRegistry);
var rendered = filter.Render(new RenderArgs<TVal>(BsonSerializer.SerializerRegistry.GetSerializer<TVal>(), BsonSerializer.SerializerRegistry));
var key = GetKey(rendered["_id"]);

TKey key = GetKey(rendered["_id"]);

if (Documents.TryGetValue(key, out TVal? value))
if (Documents.TryGetValue(key, out var value))
{
#pragma warning disable IDE0028 // Simplify collection initialization
mockCursor
.Setup(x => x.Current)
.Setup(static x => x.Current)
.Returns((IEnumerable<TProjection>)new List<TVal> { Documents[key] });
#pragma warning restore IDE0028 // Simplify collection initialization
return mockCursor.Object;
Expand Down Expand Up @@ -201,7 +200,7 @@ public override ReplaceOneResult ReplaceOne(FilterDefinition<TVal> filter, TVal
if (RejectChanges)
return DeleteResult.Unacknowledged.Instance;

BsonDocument filterDoc = filter.Render(BsonSerializer.SerializerRegistry.GetSerializer<TVal>(), BsonSerializer.SerializerRegistry);
var filterDoc = filter.Render(new RenderArgs<TVal>(BsonSerializer.SerializerRegistry.GetSerializer<TVal>(), BsonSerializer.SerializerRegistry));
if (!filterDoc.Contains("_id") || filterDoc.Count() > 1)
throw new NotImplementedException("No support for deleting multiple docs");

Expand Down

0 comments on commit 935dc13

Please sign in to comment.