Skip to content

Commit

Permalink
Register new model class location for test double
Browse files Browse the repository at this point in the history
In addition to registering the Mongo serialization options for the real
MongoConnection, we also need to do the same thing for the test double
of the MongoConnection class, so that it can test real data correctly.
  • Loading branch information
rmunn committed Jul 9, 2024
1 parent 05c481a commit 7c16cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LfMerge.Core.Tests/TestDoubles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static void Initialize()
ConventionRegistry.Register(
"My Custom Conventions",
pack,
t => t.FullName.StartsWith("LfMerge."));
t => t.FullName.StartsWith("LfMerge.") || t.FullName.StartsWith("LfMergeBridge.LfMergeModel"));

// Register class mappings before opening first connection
new MongoRegistrarForLfConfig().RegisterClassMappings();
Expand Down

0 comments on commit 7c16cfb

Please sign in to comment.