migrate-static-to-wrapper

Mechanically replace static dependency call sites with wrapper or built-in abstraction calls across a bounded scope (file, project, or namespace). Performs codemod-style bulk replacement of DateTime.UtcNow to TimeProvider.GetUtcNow(), File.ReadAllText to IFileSystem, and similar transformations. Adds constructor injection parameters and updates DI registration. USE FOR: replace DateTime.UtcNow with TimeProvider, replace DateTime.Now with TimeProvider, migrate static calls to wrapper, bulk replace File.* with IFileSystem, codemod static to injectable, add constructor injection for time provider

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

development testing