-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
243 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,57 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "01:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "01:00" | ||
timezone: "America/Chicago" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: nuget | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: nuget | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "02:00" | ||
timezone: "America/Chicago" | ||
open-pull-requests-limit: 10 | ||
groups: | ||
Azure: | ||
patterns: | ||
- "Azure.*" | ||
- "Microsoft.Azure.*" | ||
- "Microsoft.Extensions.Azure" | ||
AspNetCoreHealthChecks: | ||
patterns: | ||
- "AspNetCore.HealthChecks.*" | ||
AspNetCore: | ||
patterns: | ||
- "Microsoft.AspNetCore.*" | ||
- "Microsoft.Extensions.Features" | ||
MicrosoftExtensions: | ||
patterns: | ||
- "Microsoft.Extensions.*" | ||
EntityFrameworkCore: | ||
patterns: | ||
- "Microsoft.EntityFrameworkCore.*" | ||
OpenTelemetry: | ||
patterns: | ||
- "OpenTelemetry.*" | ||
Serilog: | ||
patterns: | ||
- "Serilog" | ||
- "Serilog.*" | ||
Hangfire: | ||
patterns: | ||
- "Hangfire" | ||
- "Hangfire.*" | ||
Testcontainers: | ||
patterns: | ||
- "Testcontainers.*" | ||
xUnit: | ||
patterns: | ||
- "xunit" | ||
- "xunit.assert" | ||
- "xunit.core" | ||
- "xunit.extensibility.*" | ||
- "xunit.runner.*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net472;netstandard2.0;netstandard2.1</TargetFrameworks> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<AssemblyName>MongoDB.Abstracts</AssemblyName> | ||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="MongoDB.Driver" Version="2.20.0" /> | ||
<PackageReference Include="MongoDB.Driver" Version="2.25.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace MongoDB.Abstracts.Tests; | ||
|
||
[CollectionDefinition(CollectionName)] | ||
public class DatabaseCollection : ICollectionFixture<DatabaseFixture> | ||
{ | ||
public const string CollectionName = "DatabaseCollection"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
|
||
using XUnit.Hosting; | ||
|
||
namespace MongoDB.Abstracts.Tests; | ||
|
||
public class DatabaseFixture : TestApplicationFixture | ||
{ | ||
protected override void ConfigureApplication(HostApplicationBuilder builder) | ||
{ | ||
base.ConfigureApplication(builder); | ||
|
||
var services = builder.Services; | ||
|
||
services.AddSingleton(sp => | ||
{ | ||
var configuration = sp.GetRequiredService<IConfiguration>(); | ||
var connectionString = configuration.GetConnectionString("MongoUnitTest"); | ||
return MongoFactory.GetDatabaseFromConnectionString(connectionString); | ||
}); | ||
|
||
services.AddSingleton(typeof(IMongoEntityQuery<>), typeof(MongoEntityQuery<>)); | ||
services.AddSingleton(typeof(IMongoEntityRepository<>), typeof(MongoEntityRepository<>)); | ||
|
||
services.AddMongoDBAbstractsTests(); | ||
} | ||
} |
Oops, something went wrong.