Skip to content

Commit 75f41cc

Browse files
authored
Update README.md
1 parent e3e8fa1 commit 75f41cc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44
[![Xunit.Microsoft.DependencyInjection on fuget.org](https://www.fuget.org/packages/Xunit.Microsoft.DependencyInjection/badge.svg)](https://www.fuget.org/packages/Xunit.Microsoft.DependencyInjection)
55

66
# Xunit Dependency Injection framework
7-
Xunit does not come with any built-in dependency injection features, therefore developers have to come up with their own solution to recruit their favourite dependency injection frameworks in their tests.
7+
Xunit does not come with 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.
88

9-
This library brings in Microsoft's dependency injection container to Xunit by leveraging fixtures.
9+
This library brings in Microsoft's dependency injection container to Xunit scope by leveraging Xunit fixtures.
1010

11-
## Get started
11+
## Getting started
1212

1313
### Nuget package
14-
First add the nuget package to your Xunit project:
14+
First add the following [nuget package](https://www.nuget.org/packages/Xunit.Microsoft.DependencyInjection/) to your Xunit project:
1515

1616
```
1717
Install-Package Xunit.Microsoft.DependencyInjection
1818
```
1919

2020
### Setup your fixture
2121

22-
There is an abstract class called ```Xunit.Microsoft.DependencyInjection.Abstracts.TestBedFixture``` which contains the necessary functionalities to add services and configurations to Microsoft's dependency injection container. Your concrete test fixture class derived from this abstract class must implement the following two abstract methods:
22+
The abstract class of `Xunit.Microsoft.DependencyInjection.Abstracts.TestBedFixture` contains the necessary functionalities to add services and configurations to Microsoft's dependency injection container. Your concrete test fixture class must derive from this abstract class and implement the following two abstract methods:
2323

2424
```csharp
25-
protected abstract string GetConfigurationFile();
25+
protected abstract IEnumerable<string> GetConfigurationFiles();
2626
protected abstract void AddServices(IServiceCollection services, IConfiguration configuration);
2727
```
2828

29-
```GetConfigurationFile(...)``` method returns the name of the configuration file in your Xunit test project. ```AddServices(...)``` is used to wire up services.
29+
`GetConfigurationFiles(...)` method returns a collection of the configuration files in your Xunit test project to the framework. `AddServices(...)` method must be used to wire up the implemented services.
3030

3131
### Access the wired up services
3232
There are two method that you can use to access the wired up service depending on your context:

0 commit comments

Comments
 (0)