Become a member
Sign in
A Cleaner Way to Create Mocks in .NET
268
6
Martin Rybak
Craig Boland
Craig Boland
Jul 28, 2017 · 1 min read

Love this. I’ve been using a stand-alone Builder pattern classes to perform multiple setups an other manipulations, and often with fluent syntax. I like that this approach is a single class that is both the mock and setups, all in one place. Thanks for posting.

    Craig Boland

    Written by

    Craig Boland

    Write the first response

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal