Skip to content

Commit

Permalink
Updated README with XUnit info
Browse files Browse the repository at this point in the history
  • Loading branch information
jgozner committed Sep 30, 2021
1 parent a9189c7 commit b41aec7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,23 @@ using (
```

## Test Support
This repo contains two nuget packages, one for the fluent access and the other is a ms-test base classes to be used while testing. For example in a unit-test it is possible to fire up a postgres container and wait when the the db has booted.
This repo contains three nuget packages, one for the fluent access, one for ms-test base classes and another for xunit base classes to be used while testing. For example in a unit-test it is possible to fire up a postgres container and wait when the the db has booted.

### XUnit
```cs
public class PostgresXUnitTests : IClassFixture<PostgresTestBase>
{
[Fact]
public void Test()
{
// We now have a running postgres
// and a valid connection string to use.
}
}
```


### MSTest
```cs
using (
var container =
Expand Down

0 comments on commit b41aec7

Please sign in to comment.