{"id":15598667,"url":"https://github.com/fluffynuts/nsubstitute.verifyall","last_synced_at":"2025-07-15T19:07:53.953Z","repository":{"id":215469628,"uuid":"739015468","full_name":"fluffynuts/nsubstitute.verifyall","owner":"fluffynuts","description":"Provides the .VerifyAll() extension method for reference types, similar to Moq's","archived":false,"fork":false,"pushed_at":"2024-04-18T07:55:05.000Z","size":106,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T16:50:42.183Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluffynuts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-01-04T15:21:29.000Z","updated_at":"2024-10-16T14:09:49.000Z","dependencies_parsed_at":"2025-01-06T16:50:00.611Z","dependency_job_id":"7b476a02-0e6b-4498-9fd8-fc044dff00e9","html_url":"https://github.com/fluffynuts/nsubstitute.verifyall","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"8265911eea0037c5b36b0a4fb402805d82e21acf"},"previous_names":["fluffynuts/nsubstitute.verifyall"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fnsubstitute.verifyall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fnsubstitute.verifyall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fnsubstitute.verifyall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluffynuts%2Fnsubstitute.verifyall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluffynuts","download_url":"https://codeload.github.com/fluffynuts/nsubstitute.verifyall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466792,"owners_count":19805862,"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":[],"created_at":"2024-10-03T01:40:57.331Z","updated_at":"2025-02-24T11:17:13.267Z","avatar_url":"https://github.com/fluffynuts.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"NSubstitute.VerifyAll\n---\n\nAim: to provide the convenient `.VerifyAll()` method from Moq on NSubstitute\nproxies so that:\n\n- it's easier to move from Moq to NSubstitute\n- it's more convenient to verify a bunch of calls which have been set up\n\nNot supported, and may never be, unless there's demand:\n- `.Verifiable()`\n- `.Verify()`\nThese methods are used to verify only a portion of the mocked\nservice - if you're setting up a bunch of mocks and only testing\none or two, it's not much effort to verify those calls later. However,\nif you're setting up a bunch of calls or migrating code, being able to\nleave `.VerifyAll()` in place is quite convenient.\n\nUsage\n---\n\n1. install\n2. add `using NSubstitute.VerifyAll` to the affected file(s)\n3. use `.VerifyAll()` as you would with Moq (see below)\n\nConvenience\n---\n\nOne of the very convenient bits of Moq is the `.VerifyAll()` extension,\nwhich reduces noise in a test where you're going to set up a substitute/mock\nservice with one or more mocked methods, and then verify that those methods\nhave been called as expected:\n\n```csharp\nvar service = new Mock\u003cIService\u003e();\nservice.Setup(x =\u003e x.Add(3, 4))\n    .Returns(7);\nvar consumer = new Consumer(service.Object);\n// ... some time later:\nthing.VerifyAll();\n```\n\ncompared with NSubstitute's:\n```csharp\nvar service = Substitute.For\u003cIService\u003e();\nservice\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fnsubstitute.verifyall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluffynuts%2Fnsubstitute.verifyall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluffynuts%2Fnsubstitute.verifyall/lists"}