Extends Verify to allow verification of RavenDB bits.
See Milestones for release notes.
Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.
Enable VerifyRavenDB once at assembly load time:
[ModuleInitializer]publicstaticvoidInit()=>VerifyRavenDB.Initialize();Verifiying an IDocumentSession will result in all pending changes being written to a snapshot.
Adding a document to a session:
varentity=newPerson{Name="John"};session.Store(entity);awaitVerify(session);Will result in the following verified file:
[
{
Key: people/1-A,
Changes: [
{
Type: DocumentAdded,
NewValue: {
Name: John
}
}
]
}
]Updating a document in a session:
varentity=newPerson{Name="John"};session.Store(entity);session.SaveChanges();entity.Name="Joe";awaitVerify(session);Will result in the following verified file:
[
{
Key: people/1-A,
Changes: [
{
Type: FieldChanged,
FieldName: Name,
NewValue: Joe,
OldValue: John
}
]
}
]Raven designed by Maciej Świerczek from The Noun Project.

