{"id":18937429,"url":"https://github.com/verifytests/verify.ravendb","last_synced_at":"2026-03-21T16:30:18.627Z","repository":{"id":42575933,"uuid":"304814673","full_name":"VerifyTests/Verify.RavenDB","owner":"VerifyTests","description":"Extends Verify to allow verification of RavenDB bits.","archived":false,"fork":false,"pushed_at":"2024-04-30T01:38:35.000Z","size":480,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T09:37:55.852Z","etag":null,"topics":["ravendb","snapshot-testing","verify"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VerifyTests.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"VerifyTests"}},"created_at":"2020-10-17T06:39:45.000Z","updated_at":"2024-05-09T23:27:51.802Z","dependencies_parsed_at":"2024-01-10T00:53:59.283Z","dependency_job_id":"4a214e8c-7d47-45b1-93c3-fbc63f3435af","html_url":"https://github.com/VerifyTests/Verify.RavenDB","commit_stats":{"total_commits":400,"total_committers":4,"mean_commits":100.0,"dds":0.5275000000000001,"last_synced_commit":"ccc5d93dc5ac39716e6e2cd15529303c6a391508"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.RavenDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.RavenDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.RavenDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.RavenDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.RavenDB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239937699,"owners_count":19721483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ravendb","snapshot-testing","verify"],"created_at":"2024-11-08T12:11:07.820Z","updated_at":"2026-03-21T16:30:18.614Z","avatar_url":"https://github.com/VerifyTests.png","language":"C#","funding_links":["https://github.com/sponsors/VerifyTests"],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"/src/icon.png\" height=\"30px\"\u003e Verify.RavenDB\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://img.shields.io/appveyor/build/SimonCropp/verify-ravendb)](https://ci.appveyor.com/project/SimonCropp/verify-ravendb)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.RavenDB.svg)](https://www.nuget.org/packages/Verify.RavenDB/)\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow verification of [RavenDB](https://ravendb.net/) bits.\u003c!-- singleLineInclude: intro. path: /docs/intro.include.md --\u003e\n\n**See [Milestones](../../milestones?state=closed) for release notes.**\n\n\n## Sponsors\n\n\n### Entity Framework Extensions\u003c!-- include: sponsors. path: /docs/sponsors.include.md --\u003e\n\n[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.RavenDB) is a major sponsor and is proud to contribute to the development this project.\n\n[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.RavenDB/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.RavenDB)\n\n### Developed using JetBrains IDEs\n\n[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSourceSupport)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.RavenDB\n\n\n## Enable\n\nEnable VerifyRavenDB once at assembly load time:\n\n\u003c!-- snippet: enable --\u003e\n\u003ca id='snippet-enable'\u003e\u003c/a\u003e\n```cs\n[ModuleInitializer]\npublic static void Init() =\u003e\n    VerifyRavenDB.Initialize();\n```\n\u003csup\u003e\u003ca href='/src/Tests/ModuleInit.cs#L3-L9' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-enable' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n## Usage\n\nVerifiying an [IDocumentSession](https://ravendb.net/docs/article-page/5.0/Csharp/client-api/session/what-is-a-session-and-how-does-it-work) will result in all pending changes being written to a snapshot.\n\n\n### Document added\n\nAdding a document to a session:\n\n\u003c!-- snippet: Added --\u003e\n\u003ca id='snippet-Added'\u003e\u003c/a\u003e\n```cs\nvar entity = new Person\n{\n    Name = \"John\"\n};\nsession.Store(entity);\nawait Verify(session);\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.cs#L29-L38' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Added' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nWill result in the following verified file:\n\n\u003c!-- snippet: Tests.Added.verified.txt --\u003e\n\u003ca id='snippet-Tests.Added.verified.txt'\u003e\u003c/a\u003e\n```txt\n[\n  {\n    Key: people/1-A,\n    Changes: [\n      {\n        Type: DocumentAdded,\n        NewValue: {\n          Name: John\n        }\n      }\n    ]\n  }\n]\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.Added.verified.txt#L1-L13' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Tests.Added.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n### Document updated\n\nUpdating a document in a session:\n\n\u003c!-- snippet: Updated --\u003e\n\u003ca id='snippet-Updated'\u003e\u003c/a\u003e\n```cs\nvar entity = new Person\n{\n    Name = \"John\"\n};\nsession.Store(entity);\nsession.SaveChanges();\nentity.Name = \"Joe\";\nawait Verify(session);\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.cs#L47-L58' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Updated' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nWill result in the following verified file:\n\n\u003c!-- snippet: Tests.Updated.verified.txt --\u003e\n\u003ca id='snippet-Tests.Updated.verified.txt'\u003e\u003c/a\u003e\n```txt\n[\n  {\n    Key: people/1-A,\n    Changes: [\n      {\n        Type: FieldChanged,\n        FieldName: Name,\n        NewValue: Joe,\n        OldValue: John\n      }\n    ]\n  }\n]\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.Updated.verified.txt#L1-L13' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Tests.Updated.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n## Icon\n\n[Raven](https://thenounproject.com/term/raven/2011311/) designed by [Maciej Świerczek](https://thenounproject.com/swierq/) from [The Noun Project](https://thenounproject.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.ravendb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.ravendb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.ravendb/lists"}