mockly
Fluent HTTP mocking and request assertions for .NET tests
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install Mockly?โผ
Run `npx skills add dennisdoomen/mockly --all -g -y` in your terminal to install this skill globally for your AI coding agent.
How to mock HttpClient calls in .NET tests?โผ
Create an HttpMock, define expected requests with fluent methods like ForGet and WithPath, configure responses, then call GetClient() to get a pre-configured HttpClient for your test.
Can Mockly simulate slow or failing APIs?โผ
Yes. Use After(TimeSpan) to add response latency for timeout testing, and chain Then() calls to return sequenced responses like fail twice then succeed.
Does Mockly work with FluentAssertions?โผ
Yes. Companion packages FluentAssertions.Mockly.v7 and .v8 let you assert that all mocks were called and inspect captured requests with expressive syntax.
Which .NET versions does Mockly support?โผ
Mockly supports .NET Framework 4.7.2 and .NET 8.0 or higher, so it works in both legacy and modern test projects.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core