{"id":13431783,"url":"https://github.com/FakeItEasy/FakeItEasy","last_synced_at":"2025-03-16T12:31:25.666Z","repository":{"id":1020111,"uuid":"1920133","full_name":"FakeItEasy/FakeItEasy","owner":"FakeItEasy","description":"The easy mocking library for .NET","archived":false,"fork":false,"pushed_at":"2024-04-13T15:51:28.000Z","size":23863,"stargazers_count":1624,"open_issues_count":20,"forks_count":177,"subscribers_count":51,"default_branch":"master","last_synced_at":"2024-04-13T22:25:00.523Z","etag":null,"topics":["dotnet","dotnet-core","fake-objects","hacktoberfest","mocking"],"latest_commit_sha":null,"homepage":"https://fakeiteasy.github.io","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/FakeItEasy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2011-06-19T17:56:01.000Z","updated_at":"2024-04-15T01:42:37.977Z","dependencies_parsed_at":"2023-11-07T02:42:25.741Z","dependency_job_id":"10eb8d33-0166-453f-aabb-c8d9daeeeab3","html_url":"https://github.com/FakeItEasy/FakeItEasy","commit_stats":{"total_commits":2320,"total_committers":52,"mean_commits":44.61538461538461,"dds":0.6275862068965516,"last_synced_commit":"022cac3fadbca4d3e27a05e9d7f42038f89517b8"},"previous_names":[],"tags_count":119,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FakeItEasy%2FFakeItEasy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FakeItEasy%2FFakeItEasy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FakeItEasy%2FFakeItEasy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FakeItEasy%2FFakeItEasy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FakeItEasy","download_url":"https://codeload.github.com/FakeItEasy/FakeItEasy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221663620,"owners_count":16859867,"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":["dotnet","dotnet-core","fake-objects","hacktoberfest","mocking"],"created_at":"2024-07-31T02:01:05.838Z","updated_at":"2024-10-27T10:32:37.770Z","avatar_url":"https://github.com/FakeItEasy.png","language":"C#","readme":"![Are you mocking me?](https://raw.githubusercontent.com/FakeItEasy/fakeiteasy.github.io/master/img/fakeiteasy_logo_256.png)\r\n\r\n[![NuGet version](https://img.shields.io/nuget/v/FakeItEasy.svg?style=flat)](https://www.nuget.org/packages/FakeItEasy)\r\n[![Build status](https://github.com/FakeItEasy/FakeItEasy/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/FakeItEasy/FakeItEasy/actions/workflows/ci.yml?query=branch%3Amaster)\r\n\r\nA .NET dynamic fake library for creating all types of fake objects, mocks, stubs etc.\r\n\r\n* Easier semantics, all fake objects are just that - fakes - the use of the fakes determines whether they're mocks or stubs.\r\n* Context-aware fluent interface guides the developer.\r\n* Designed for ease of use.\r\n* Full compatibility with both C# and VB.Net.\r\n\r\n## Faking amazing example\r\n\r\n```c#\r\n// Creating a fake object is very easy!\r\n// No mocks, or stubs; everything's a fake.\r\nvar shop = A.Fake\u003cICandyShop\u003e();\r\n\r\n// Easily set up a call to return a value.\r\nvar lollipop = new Lollipop();\r\nA.CallTo(() =\u003e shop.GetTopSellingCandy()).Returns(lollipop);\r\n\r\n// Exercise your system under test by using the fake as you\r\n// would an instance of the faked type.\r\nvar customer = new SweetTooth();\r\ncustomer.BuyTastiestCandy(shop);\r\n\r\n// Asserting uses the same syntax as configuring calls.\r\nA.CallTo(() =\u003e shop.BuyCandy(lollipop)).MustHaveHappened();\r\n```\r\n\r\n## Resources\r\n\r\n* [Website](https://fakeiteasy.github.io/)\r\n* [Quickstart](https://fakeiteasy.github.io/docs/stable/quickstart/)\r\n* [Documentation](https://fakeiteasy.github.io/docs/stable/)\r\n* [Chat](https://app.gitter.im/#/room/#FakeItEasy_FakeItEasy:gitter.im)\r\n* [NuGet packages on NuGet.org](https://www.nuget.org/profiles/FakeItEasy \"FakeItEasy's packages on NuGet.org\"), targeting:\r\n  * .NET Framework 4.6.2\r\n  * .NET Standard 2.0\r\n  * .NET Standard 2.1\r\n  * .NET 6.0\r\n\r\n---\r\n\r\nFakeItEasy logo designed by [Vanja Pakaski](https://github.com/vanpak).\r\n","funding_links":[],"categories":["Frameworks, Libraries and Tools","C#","Testing and Mocking","Libraries","C\\#","框架, 库和工具","Testing","测试","Identifiers"],"sub_categories":["Testing","测试","GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFakeItEasy%2FFakeItEasy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFakeItEasy%2FFakeItEasy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFakeItEasy%2FFakeItEasy/lists"}