Roy Osherove

View Original

TypeMOQ API

I was fiddling around with the typemock API, see what it would belike to use it in a more MOQ like manner:

image

to support this, all the code you need, including the Faker class exists here. you’d need to reference the typemock dll and the typemock c# API dll to make it work.

I’m not sure I’m crazy about it, but it is shorter. I’m not sure it’s as readable, though.