This commit is contained in:
SimonCropp 2020-01-07 13:08:39 +11:00
Родитель 6efd21324b
Коммит 8dd1e6f00c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: C75A8447313A3D69
2 изменённых файлов: 17 добавлений и 9 удалений

Просмотреть файл

@ -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)<!-- endtoc -->
@ -41,7 +39,12 @@ VerifyEntityFramework.Enable();
<!-- endsnippet -->
### 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:
<!-- endsnippet -->
### Deleted entry
#### Deleted entity
This test:
@ -125,7 +128,7 @@ Will result in the following verified file:
<!-- endsnippet -->
### Modified entry
#### Modified entity
This test:

Просмотреть файл

@ -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: