<sup><ahref='/src/Tests/GlobalSetup.cs#L9-L11'title='File snippet `enable` was extracted from'>snippet source</a> | <ahref='#snippet-enable'title='Navigate to start of snippet `enable`'>anchor</a></sup>
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).
<sup><ahref='/src/Tests/Tests.cs#L12-L22'title='File snippet `added` was extracted from'>snippet source</a> | <ahref='#snippet-added'title='Navigate to start of snippet `added`'>anchor</a></sup>
<sup><ahref='/src/Tests/Tests.Added.verified.txt#L1-L8'title='File snippet `Tests.Added.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Added.verified.txt'title='Navigate to start of snippet `Tests.Added.verified.txt`'>anchor</a></sup>
await using (var context = new SampleDbContext(options))
{
var company = context.Companies.Single();
context.Companies.Remove(company);
await Verify(context);
}
}
```
<sup><ahref='/src/Tests/Tests.cs#L24-L43'title='File snippet `deleted` was extracted from'>snippet source</a> | <ahref='#snippet-deleted'title='Navigate to start of snippet `deleted`'>anchor</a></sup>
<sup><ahref='/src/Tests/Tests.Deleted.verified.txt#L1-L7'title='File snippet `Tests.Deleted.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Deleted.verified.txt'title='Navigate to start of snippet `Tests.Deleted.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Tests/Tests.cs#L45-L59'title='File snippet `modified` was extracted from'>snippet source</a> | <ahref='#snippet-modified'title='Navigate to start of snippet `modified`'>anchor</a></sup>
<sup><ahref='/src/Tests/Tests.Modified.verified.txt#L1-L11'title='File snippet `Tests.Modified.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Modified.verified.txt'title='Navigate to start of snippet `Tests.Modified.verified.txt`'>anchor</a></sup>
<sup><ahref='/src/Tests/Tests.cs#L119-L128'title='File snippet `queryable` was extracted from'>snippet source</a> | <ahref='#snippet-queryable'title='Navigate to start of snippet `queryable`'>anchor</a></sup>
<sup><ahref='/src/Tests/Tests.Queryable.verified.txt#L1-L3'title='File snippet `Tests.Queryable.verified.txt` was extracted from'>snippet source</a> | <ahref='#snippet-Tests.Queryable.verified.txt'title='Navigate to start of snippet `Tests.Queryable.verified.txt`'>anchor</a></sup>
[Database](https://thenounproject.com/term/database/310841/) designed by [Creative Stall](https://thenounproject.com/creativestall/) from [The Noun Project](https://thenounproject.com/creativepriyanka).