StefH/ProxyInterfaceSourceGenerator

This project uses Source Generation to generate an interface and a Proxy class for classes. This makes it possible to wrap external classes which do not have an interface, in a Proxy class which makes it easier to Mock and use Dependency Injection.

38
/ 100
Emerging

This project helps C# developers create clean, testable code when working with existing classes that lack interfaces. It takes a C# class without an interface and automatically generates both an interface and a proxy class. This allows developers to easily mock these classes for testing and integrate them into dependency injection frameworks.

No commits in the last 6 months.

Use this if you are a C# developer who needs to create interfaces and proxy classes for existing concrete classes to improve testability and integrate with dependency injection.

Not ideal if you are not a C# developer, or if you are working with classes that already have well-defined interfaces.

C#-development software-testing dependency-injection code-generation refactoring
Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 8 / 25
Maturity 16 / 25
Community 12 / 25

How are scores calculated?

Stars

47

Forks

6

Language

C#

License

MIT

Last pushed

Sep 05, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/StefH/ProxyInterfaceSourceGenerator"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.