dennisdoomendennisdoomenCommunityยท1 Agent Skills Included

mockly

Fluent HTTP mocking and request assertions for .NET tests

Mocks HTTP calls in .NET tests by intercepting HttpClient requests with a fluent, chainable API. Matches URLs, headers, tokens, and bodies with wildcards, then returns JSON, status codes, or sequenced responses. Captures every request for inspection and integrates with FluentAssertions to verify HTTP behavior without real network calls.
npx skills add dennisdoomen/mockly --all -g -y
Available:

Tells your AI coding agent how the Mockly codebase is organized, how to build and test it, and which naming and style conventions to follow when writing or modifying the library and its tests.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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โ†’