Skip to content
This repository has been archived by the owner on Oct 21, 2018. It is now read-only.

Create instance will all elements mocked #1

Open
ayende opened this issue Sep 3, 2009 · 4 comments
Open

Create instance will all elements mocked #1

ayende opened this issue Sep 3, 2009 · 4 comments

Comments

@ayende
Copy link
Owner

ayende commented Sep 3, 2009

Support something like:

MockRepository.CreateInstanceWithMockedDependencies <ClassUnderTest >()

All dependencies will be set to the mocked instances or default values (for ValueTypes and strings)

@TimBarcz
Copy link
Contributor

Is this the hook to get recursive mocks?

@ayende
Copy link
Owner Author

ayende commented Sep 13, 2009

Nope, this is something else. I fixed the original text to show generics.
The idea is that we inspect CUT and provide mocks to all its ctor arguments.

@TimBarcz
Copy link
Contributor

TimBarcz commented Oct 5, 2009

like AMC

@ayende
Copy link
Owner Author

ayende commented Oct 5, 2009

Yes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants