File tree Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Expand file tree Collapse file tree 5 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 7 .0.400 " ,
3+ "version" : " 8 .0.304 " ,
44 "rollForward" : " minor"
55 }
66}
Original file line number Diff line number Diff line change 44 </PropertyGroup >
55
66 <PropertyGroup Label =" Framework Versions" >
7- <TestProjectTargetFrameworks >net6.0;net7.0</TestProjectTargetFrameworks >
7+ <TestProjectTargetFrameworks >net6.0;net7.0;net8.0 </TestProjectTargetFrameworks >
88 <ResourceProjectTargetFrameworks >netstandard2.0;net6.0;net7.0</ResourceProjectTargetFrameworks >
99 </PropertyGroup >
1010</Project >
Original file line number Diff line number Diff line change 11namespace Squadron
22{
33 /// <summary>
4- /// Default Mongo ResplicaSet resource options
4+ /// Default Mongo ReplicaSet resource options
55 /// </summary>
66 public class MongoReplicaSetDefaultOptions : MongoDefaultOptions
77 {
Original file line number Diff line number Diff line change 55
66namespace Squadron
77{
8+ /// <inheritdoc/>
9+ public class MongoReplicaSetResource : MongoReplicaSetResource < MongoReplicaSetDefaultOptions > { }
10+
811 /// <summary>
9- /// Represents a mongo database resplica set resource that can be used by unit tests.
12+ /// Represents a mongo database replica set resource that can be used by unit tests.
1013 /// </summary>
1114 /// <seealso cref="IDisposable"/>
12- public class MongoReplicaSetResource : MongoResource < MongoReplicaSetDefaultOptions >
15+ public class MongoReplicaSetResource < TOptions > :
16+ MongoResource < TOptions >
17+ where TOptions : MongoReplicaSetDefaultOptions , new ( )
1318 {
14- public async override Task InitializeAsync ( )
19+ public override async Task InitializeAsync ( )
1520 {
1621 await base . InitializeAsync ( ) ;
1722 var client = new MongoClient ( ConnectionString + "/?connect=direct" ) ;
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ public class MongoResource : MongoResource<MongoDefaultOptions> { }
1515 /// Represents a mongo database resource that can be used by unit tests.
1616 /// </summary>
1717 /// <seealso cref="IDisposable"/>
18- public class MongoResource < TOptions >
19- : ContainerResource < TOptions > ,
20- IAsyncLifetime ,
21- IComposableResource
18+ public class MongoResource < TOptions > :
19+ ContainerResource < TOptions > ,
20+ IAsyncLifetime ,
21+ IComposableResource
2222 where TOptions : ContainerResourceOptions , new ( )
2323 {
2424 private MongoClient _client ;
You can’t perform that action at this time.
0 commit comments