Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Install the [Nuget](https://www.nuget.org/packages/Xunit.DependencyInjection) package.

``` bash
``` sh
dotnet add package Xunit.DependencyInjection
```

Expand Down Expand Up @@ -54,7 +54,7 @@ public class MyAwesomeTests

### Asp.Net Core Startup

``` bash
``` sh
dotnet add package Microsoft.AspNetCore.TestHost
```

Expand All @@ -72,7 +72,9 @@ public class Startup

If you use MinimalApi rather than asp.net core Startup class.

``` bash
Add package reference for `Xunit.DependencyInjection.AspNetCoreTesting`

``` sh
dotnet add package Xunit.DependencyInjection.AspNetCoreTesting
```

Expand Down Expand Up @@ -226,6 +228,12 @@ internal class DependencyClass : IDependency

## Write `Microsoft.Extensions.Logging` to `ITestOutputHelper`

Add package reference for `Xunit.DependencyInjection.Logging`

```sh
dotnet add package Xunit.DependencyInjection.Logging
```

> The call chain must be from the test case. If not, this feature will not work.

``` C#
Expand Down