Conversation
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
- Coverage 93.43% 93.38% -0.06%
==========================================
Files 53 54 +1
Lines 1736 1753 +17
==========================================
+ Hits 1622 1637 +15
- Misses 114 116 +2
Continue to review full report at Codecov.
|
A few of the tests couldn't run in .Net Core (due to how configuration management works). To work around that for all .Net versions, a new interface for the MongoDbContext that takes an IMongoDbContextOptions parameter that allows specifying the connection string and name.
|
Test project has been migrated to new Due to a difference with how .Net Core supports configuration, there is a slight decrease in functionality/usage in .Net Core around creating contexts via connection string name. There is a new constructor that allows passing in an "options" object that allows configuring the same type of data (connection string and database). This "options" object follows similar functionality in EF Core. |
Started with organising the tests to match the folder structure of the main library. Continued to have the tests inherit from the same base (allowing easier cleanup per test - particularly around cleaning up the MongoDB driver) however will also include fixing up some neglected test cases.
This also helps get the tests in a better shape for another refactor/rename of core components in the main library.