darrencauthon / AutoMoq

Auto mocking provider for Moq.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose access to SetInstance in AutoMoqTestFixture

DullReferenceException opened this issue · comments

I'm using AutoMoqTestFixture like crazy in our code. It's very convenient. However, one thing that it's missing is the ability to specify an instance for an interface instead of using auto-generated mocks. I see that the AutoMoq that underlies this class has a SetInstance method. Perhaps that could be provided as a pass-through method in AutoMoqTestFixture.

Would it be better to just expose the AutoMoqer? The test fixture is meant just to help, and it seems that exposing it would cover any possible needs for it.

Yes, exposure of the AutoMoqer would work as well.

From: Darren Cauthon [mailto:notifications@github.com]
Sent: Tuesday, July 30, 2013 6:28 PM
To: darrencauthon/AutoMoq
Cc: Jacob H Page
Subject: Re: [AutoMoq] Expose access to SetInstance in AutoMoqTestFixture (#18)

Would it be better to just expose the AutoMoqer? The test fixture is meant just to help, and it seems that exposing it would cover any possible needs for it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-21834893.

This is working great. Any idea on when you plan on releasing a new version to NuGet?

Do you see the new version on NuGet now? I just checked my latest build, 1.6.2, and it included this change. Is it available for you?

xamarinstudio

Yes, it’s there. Thank you!

From: Darren Cauthon [mailto:notifications@github.com]
Sent: Friday, October 18, 2013 8:15 PM
To: darrencauthon/AutoMoq
Cc: Jacob H Page
Subject: Re: [AutoMoq] Expose access to SetInstance in AutoMoqTestFixture (#18)

Do you see the new version on NuGet now? I just checked my latest build, 1.6.2, and it included this change. Is it available for you?

[xamarinstudio]https://f.cloud.github.com/assets/148768/1365536/a45a0dc4-386c-11e3-8c6d-b2cadf908dde.jpg


Reply to this email directly or view it on GitHubhttps://github.com//issues/18#issuecomment-26642288.