generate-testability-wrappers

Generate wrapper interfaces and DI registration for hard-to-test static dependencies in C#. Produces IFileSystem, IEnvironmentProvider, IConsole, IProcessRunner wrappers, or guides adoption of TimeProvider and IHttpClientFactory. USE FOR: generate wrapper for static, create IFileSystem wrapper, wrap DateTime.Now, make static testable, make class testable, create abstraction for File.*, generate DI registration, TimeProvider adoption, IHttpClientFactory setup, testability wrapper, mock-friendly interface, mock time in tests, create the right abstraction to mock, how to mock DateTime, test code

SKILL.md6fb229b34454
Loading supporting files

Comments: 0

Be the first to comment

Share what worked or leave a question for the creator.

Log in to comment

microsoft/testfx · MIT · Revision 6fb229b34454

design interfaces