{"id":13629606,"url":"https://github.com/onsatoci/InterfaceGenerator","last_synced_at":"2025-04-17T09:35:07.035Z","repository":{"id":44717455,"uuid":"356415722","full_name":"daver32/InterfaceGenerator","owner":"daver32","description":"A simple source generator that creates interfaces by implementations.","archived":false,"fork":false,"pushed_at":"2024-03-27T14:35:25.000Z","size":60,"stargazers_count":30,"open_issues_count":10,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-12T12:41:50.216Z","etag":null,"topics":["csharp-sourcegenerator","dotnet5","dotnet6","dotnet7"],"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/daver32.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":"2021-04-09T22:46:42.000Z","updated_at":"2024-08-01T22:36:56.881Z","dependencies_parsed_at":"2024-01-06T02:09:52.652Z","dependency_job_id":"09b3eb0c-c62a-4a53-8f1f-9750dd8d6002","html_url":"https://github.com/daver32/InterfaceGenerator","commit_stats":{"total_commits":38,"total_committers":4,"mean_commits":9.5,"dds":"0.10526315789473684","last_synced_commit":"a8da4209bfe5dec5d2e3f3c40bc5f7b2f8c23110"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daver32%2FInterfaceGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daver32%2FInterfaceGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daver32%2FInterfaceGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daver32%2FInterfaceGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daver32","download_url":"https://codeload.github.com/daver32/InterfaceGenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223751275,"owners_count":17196602,"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":["csharp-sourcegenerator","dotnet5","dotnet6","dotnet7"],"created_at":"2024-08-01T22:01:14.743Z","updated_at":"2025-04-17T09:35:01.755Z","avatar_url":"https://github.com/daver32.png","language":"C#","readme":"# InterfaceGenerator [![NuGet Version](http://img.shields.io/nuget/v/InterfaceGenerator.svg?style=flat)](https://www.nuget.org/packages/InterfaceGenerator/)\n\nA simple source generator that creates interfaces by implementations. Useful for when you need an interface purely for the sake of mocking, or maybe you're not sure if you'll need the abstraction later on.\n\nInspired by [net_automatic_interface](https://github.com/codecentric/net_automatic_interface)\n\nExample user implementation:\n```cs\n[GenerateAutoInterface]\npublic class SampleService : ISampleService\n{\n    public double Multiply(double x, double y)\n    {\n        return x * y;            \n    }\n\n    public int NiceNumber =\u003e 69;\n}\n```\n\nAuto generated interface:\n```cs\npublic partial interface ISampleService\n{\n    double Multiply(double x, double y);\n    int NiceNumber { get; }\n}\n```\n\n\u003cbr\u003e\n\nSupports:\n - Methods, properties, indexers.\n - Default arguments, `params` arguments.\n - Generic types and methods.\n - XML docs.\n - Explicit interface names (using the `Name` property on `GenerateAutoInterface`).\n - Explicit interface visibility (using the `VisibilityModifier` property on `GenerateAutoInterface`).\n - Explicitly excluding a member from the interface (using `[AutoInterfaceIgnore]`).\n \nMissing:\n - Events.\n - Nested types.\n - Probably a bunch of edge cases I forgot about.\n \n","funding_links":[],"categories":["Source Generators","Do not want to test 111 ( old ISourceGenerator )"],"sub_categories":["Testing","1. [ThisAssembly](https://ignatandrei.github.io/RSCG_Examples/v2/docs/ThisAssembly) , in the [EnhancementProject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) category"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsatoci%2FInterfaceGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonsatoci%2FInterfaceGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonsatoci%2FInterfaceGenerator/lists"}