Skip to content

Commit 42e708f

Browse files
Added references to the unit test demo (#47)
1 parent 2b1aab7 commit 42e708f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/development/unit-testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,5 @@ public async Task WhenUserHasPolicy_ThenAllowExecution()
188188

189189
The user context is always injected when you run a query on the test server. By default it is an anonymous user and credentials are applied when you add a claim or policy to the context during setup.
190190

191+
## Demo project
192+
See the [demos page](../reference/demo-projects.md) for a working demo using XUnit.

docs/reference/demo-projects.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Demonstrates the creation of a custom `ILogProvider` to intercept logging events
1616
📌 [Custom Http Processor](https://github.com/graphql-aspnet/demo-projects/tree/master/Custom-HttpProcessor)<br/>
1717
Demonstrates overriding the default HTTP Processor to conditionally process entire queries at the ASP.NET level.
1818

19+
📌 [Unit Test Framework](https://github.com/graphql-aspnet/demo-projects/tree/master/Unit-Testing)<br/>
20+
An example project that utilizes the test framework nuget package to execute some unit tests against a graph controller using xUnit.
1921

2022
<br/>
2123

0 commit comments

Comments
 (0)