{"id":18937464,"url":"https://github.com/verifytests/verify.nodatime","last_synced_at":"2025-07-22T07:33:36.365Z","repository":{"id":42575946,"uuid":"363860640","full_name":"VerifyTests/Verify.NodaTime","owner":"VerifyTests","description":"Adds Verify support for scrubbing NodaTime values.","archived":false,"fork":false,"pushed_at":"2025-07-21T12:20:07.000Z","size":528,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T14:25:30.688Z","etag":null,"topics":[],"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":null,"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,"zenodo":null},"funding":{"github":"VerifyTests"}},"created_at":"2021-05-03T08:12:59.000Z","updated_at":"2025-07-21T12:20:11.000Z","dependencies_parsed_at":"2023-02-19T16:30:41.906Z","dependency_job_id":"78c872f1-f34f-4ae1-82c7-b2aa44430fea","html_url":"https://github.com/VerifyTests/Verify.NodaTime","commit_stats":{"total_commits":204,"total_committers":3,"mean_commits":68.0,"dds":"0.23529411764705888","last_synced_commit":"6e8bbb4efaf47cb8124caa56780fd950e3e0997c"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/VerifyTests/Verify.NodaTime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.NodaTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.NodaTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.NodaTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.NodaTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.NodaTime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.NodaTime/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266448167,"owners_count":23930145,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-08T12:11:16.660Z","updated_at":"2025-07-22T07:33:36.355Z","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.NodaTime\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://ci.appveyor.com/api/projects/status/ej794va900x9257f?svg=true)](https://ci.appveyor.com/project/SimonCropp/Verify-NodaTime)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.NodaTime.svg)](https://www.nuget.org/packages/Verify.NodaTime/)\n\nAdds [Verify](https://github.com/VerifyTests/Verify) support for scrubbing [NodaTime](https://nodatime.org/) values.\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: zzz. path: /docs/zzz.include.md --\u003e\n\n[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.NodaTime) 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.NodaTime/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.NodaTime)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.NodaTime\n\n\n## Usage\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    VerifyNodaTime.Initialize();\n```\n\u003csup\u003e\u003ca href='/src/Tests/ModuleInitializer.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\nThen all Noda date/times will be scrubbed:\n\n\u003c!-- snippet: Example --\u003e\n\u003ca id='snippet-Example'\u003e\u003c/a\u003e\n```cs\n[Fact]\npublic Task ScrubbingExample()\n{\n    var target = new Person\n    {\n        Dob = LocalDateTime.FromDateTime(DateTime.Now)\n    };\n\n    return Verify(target);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.cs#L23-L36' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Example' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nResulting in:\n\n\u003c!-- snippet: Tests.ScrubbingExample.verified.txt --\u003e\n\u003ca id='snippet-Tests.ScrubbingExample.verified.txt'\u003e\u003c/a\u003e\n```txt\n{\n  Dob: LocalDateTime_1\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.ScrubbingExample.verified.txt#L1-L3' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Tests.ScrubbingExample.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n## Disable scrubbing\n\nTo disable scrubbing use `DontScrubNodaTimes`:\n\n\u003c!-- snippet: Disable --\u003e\n\u003ca id='snippet-Disable'\u003e\u003c/a\u003e\n```cs\n[Fact]\npublic Task DisableExample()\n{\n    var target = new Person\n    {\n        Dob = LocalDateTime.FromDateTime(new(2010, 2, 10))\n    };\n\n    return Verify(target)\n        .DontScrubNodaTimes();\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.cs#L38-L52' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Disable' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nResulting in:\n\n\u003c!-- snippet: Tests.DisableExample.verified.txt --\u003e\n\u003ca id='snippet-Tests.DisableExample.verified.txt'\u003e\u003c/a\u003e\n```txt\n{\n  Dob: DateTimeOffset_1\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Tests.DisableExample.verified.txt#L1-L3' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Tests.DisableExample.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nTo disable scrubbing globally use `VerifyNodaTime.DontScrub`:\n\n\u003c!-- snippet: GlobalDontScrub --\u003e\n\u003ca id='snippet-GlobalDontScrub'\u003e\u003c/a\u003e\n```cs\n[ModuleInitializer]\npublic static void Init()\n{\n    VerifyNodaTime.DontScrub();\n    VerifyNodaTime.Initialize();\n}\n```\n\u003csup\u003e\u003ca href='/src/StaticSettingsTests/ModuleInitializer.cs#L3-L12' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-GlobalDontScrub' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n## Icon\n\n[Clock](https://thenounproject.com/term/clock/731041/) designed by [Mooyai Khomsun Chaiwong](https://thenounproject.com/mooyai/) from [The Noun Project](https://thenounproject.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.nodatime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.nodatime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.nodatime/lists"}