RSS DEV Community

New Project: Public Interface Generator

A new project called Public Interface Generator has been created to automate the process of generating interface code in C#. The project aims to enforce code patterns with code and make unit test mocking easier. The generator creates interfaces at compile time by inspecting classes with the provided GenerateInterfaceAttribute attribute. It generates an interface of all public methods, properties, and events. The project includes code and a NuGet package for easy integration. The full details of the project can be found in the project README on GitHub. The project's purpose is to simplify the process of creating interfaces for unit testing. By automating this process, developers can save time and focus on other tasks. The NuGet package is hosted on nuget.org and can be easily installed. The project is designed to make it easier to codify patterns and automate repetitive tasks in C# development.
dev.to
dev.to
Create attached notes ...