mikeyoon / FakeItEasyAutoMocker

An automocker that uses FakeItEasy. Mocks both interfaces and classes.
Other
3 stars 2 forks source link

duplicate ctor dependencies #1

Open johnm25 opened 11 years ago

johnm25 commented 11 years ago

If i have a ctor like" function_ctor(IState stateError, IState statePending) {}

AutoMocker can not see difference between those to IState

Will it be possible to have "named" arguments. aka structuremap.... /J

mikeyoon commented 11 years ago

I think that's possible to add given the current architecture. Maybe during the setup of the container you could specify these named arguments, and the The() method could take in a string to retrieve them. Unfortunately, I can't give any timeframes on when I'd be able to add this kind of change it, since it isn't a quick fix.