diff --git a/readme.md b/readme.md index 52c0f06..a889897 100644 --- a/readme.md +++ b/readme.md @@ -17,9 +17,7 @@ Extends [Verify](https://github.com/SimonCropp/Verify) to allow verification of ## Contents * [Usage](#usage) - * [Added entry](#added-entry) - * [Deleted entry](#deleted-entry) - * [Modified entry](#modified-entry) + * [ChangeTracking](#changetracking) * [Queryable](#queryable) @@ -41,7 +39,12 @@ VerifyEntityFramework.Enable(); -### Added entry +### ChangeTracking + +Added, deleted, and Modified entities can be verified by performing changes on a DbContext and then verifying that context. This approach leverages the [EntityFramework ChangeTracker](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.changetracking.changetracker). + + +#### Added entity This test: @@ -79,7 +82,7 @@ Will result in the following verified file: -### Deleted entry +#### Deleted entity This test: @@ -125,7 +128,7 @@ Will result in the following verified file: -### Modified entry +#### Modified entity This test: diff --git a/readme.source.md b/readme.source.md index cba00a8..b1ca48c 100644 --- a/readme.source.md +++ b/readme.source.md @@ -21,7 +21,12 @@ Enable VerifyEntityFramewok once at assembly load time: snippet: Enable -### Added entry +### ChangeTracking + +Added, deleted, and Modified entities can be verified by performing changes on a DbContext and then verifying that context. This approach leverages the [EntityFramework ChangeTracker](https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.changetracking.changetracker). + + +#### Added entity This test: @@ -32,7 +37,7 @@ Will result in the following verified file: snippet: Tests.Added.verified.txt -### Deleted entry +#### Deleted entity This test: @@ -43,7 +48,7 @@ Will result in the following verified file: snippet: Tests.Deleted.verified.txt -### Modified entry +#### Modified entity This test: