Support scope level rules that apply to all fakes used within a scope #78

Closed
adamralph opened this Issue Mar 6, 2013 · 2 comments

Comments

Projects
None yet
2 participants
Owner

adamralph commented Mar 6, 2013

(Discussion and tracking moved from #27 raised by @skwasiborski)

The current API proposal by @patrik-hagne is

using (Fake.CreateScope())
{
    A.Call.Throws(new Exception());
    A.Call.WithReturnType<string>().Returns("foo");
}
Owner

adamralph commented Jan 4, 2014

Assigning P2. It's a good enhancement and we ought to pick it up (see the linked thread). We've also been quite light on API enhancements in the last few months.

@blairconrad blairconrad changed the title from Scope level rules to Support scope level rules that apply to all fakes used within a scope Feb 4, 2015

Owner

adamralph commented Mar 7, 2016

Invalidated by #604

@adamralph adamralph closed this Mar 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment