Skip to content

Commit c6901bf

Browse files
authored
Merge pull request #6 from Umplify/issue-156
Updated the README.md file #156
2 parents 9781e6f + 75bc5d8 commit c6901bf

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
# Xunit Dependency Injection framework
77

8-
*(The source code of the .NET 7.0 version of this library is retained in [the fork of this repo](https://github.com/Umplify/xunit-dependency-injection-NET7) while the .NET 6.0 version of this library is maintained and supported in this repo.)*
9-
10-
---
11-
128
Xunit does not support any built-in dependency injection features, therefore developers have to come up with a solution to recruit their favourite dependency injection framework in their tests.
139

1410
This library brings in Microsoft's dependency injection container to Xunit by leveraging Xunit's fixture.

azure-pipeline-PR.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
displayName: 'Use .NET 7.0 sdk'
1818
inputs:
1919
packageType: sdk
20-
version: 7.0.100
20+
version: 7.0.103
2121
installationPath: $(Agent.ToolsDirectory)/dotnet
2222
- script: echo Started restoring the source code
2323
- task: DotNetCoreCLI@2

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ steps:
2424
displayName: 'Use .NET 7.0 sdk'
2525
inputs:
2626
packageType: sdk
27-
version: 7.0.100
27+
version: 7.0.103
2828
installationPath: $(Agent.ToolsDirectory)/dotnet
2929
- script: echo Started restoring the source code
3030
- task: DotNetCoreCLI@2

examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Xunit.Microsoft.DependencyInjection.ExampleTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<PackageReference Include="coverlet.collector" Version="3.2.0" />
1616
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
1717
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
18-
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" />
19-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.0" />
18+
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
19+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.3" />
2020
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="7.0.0" />
2121
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
2222
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />

src/Logging/NilLoggerProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void Dispose()
1111

1212
private class NilLogger : ILogger
1313
{
14-
public IDisposable BeginScope<TState>(TState state)
14+
public IDisposable? BeginScope<TState>(TState state) where TState : notnull
1515
=> new NoOpDisposable();
1616

1717
public bool IsEnabled(LogLevel logLevel)

src/Logging/OutputLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public OutputLogger(string categoryName, ITestOutputHelper testOutputHelper)
1616
_categoryName = categoryName;
1717
}
1818

19-
public IDisposable BeginScope<TState>(TState state)
19+
public IDisposable? BeginScope<TState>(TState state) where TState : notnull
2020
=> new NoOpDisposable();
2121

2222
public bool IsEnabled(LogLevel logLevel)

0 commit comments

Comments
 (0)