-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is AutoMoq should work with asp.net core? #35
Comments
Hmm... I think. Guess it's time I learn how to port these libraries over. 😄 |
Installed dot net core. So long as I can map unity and Moq to this library, this is gonna work. |
@arielcloud I started the work to port to core, and it seems that it won't be too difficult. However, AutoMoq is very dependent on Moq, which doesn't seem to have a working version in core yet. The copy of core-supporting Moq that I'm using comes from https://www.myget.org/F/aspnetcidev/api/v3/index.json, which is fine for development but can't be released. I'll get this core version ready to go, but until moq is updated I won't release. |
Thanks a lot! |
@darrencauthon moq is updated :) can u release? |
I'll take a look soon, thanks! |
You can use Moq with net core, you need in your project.json: "dependencies": {
"NUnit": "3.5.0",
"dotnet-test-nunit": "3.4.0-beta-3",
"Moq": "4.6.25-alpha"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [
"dotnet54",
"portable-net45+win8" ,
"dnxcore50",
"netcoreapp1.0"
],
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
}
}
}
},
|
Thank you @JPBlancoDB ! 😄 |
They are already at 4.6.38-alpha :) |
I did see a video on Dot Net Core on Youtube... I think this is going to be easy to do this weekend. Or did I just doom myself? |
@darrencauthon That's it. You promised it over the weekend. Now you just have to! :) |
I will give it an honest try! 😄 |
I had a wonderful weekend with the kids... I barely touched a computer. I'm going to do the 24 pull request challenge this December, and this is going to be a big piece of it. So I will get to this ASAP. 😄 |
Any news on this? Thanks |
@darrencauthon Have you progressed on .NET Core port ? It really interest us |
I have, in a way. I've gotten tons of help with porting another one of my libraries to Core, and it's shown me another strategy.
It's just a matter of time. The last few months have been pretty hectic for me, as can be noted by my github stats. As soon as I can sit in front of a computer for 2-3 hours, I think I can knock it out.
On Fri, Feb 3, 2017 at 6:53 AM -0600, "Christophe" <[email protected]> wrote:
@darrencauthon Have you progressed on .NET Core port ? It really interest us
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Could you catch up some time to spend on porting the libraries to .Net Core? |
Eventually, I'm really sorry... juggling a lot of stuff these days. 🤹♂️ |
+1 for having support for .NET Core |
+1 for .Net Core support. I discovered this package from Mathew Renze's Writing Testable Code course on PluralSight. Now it is less fun to develop without. |
meanwhile u can try autoFixture |
I was just checking up on the status of the .NET Core port and saw that @careLearning mentioned my Clean Architecture course. Good to see that it's generating interest in AutoMoq! : ) |
Not my repo, but I found a "fork" that supports .net standard 2.0: https://github.com/ThomasHenrique2/AutoMoqCore |
Thanks, @celluj34. I migrated to AutoMoqCore. |
Moq has added Moq.AutoMocker. The method names are different but its basically a drop in replacement and appears to be active. |
when trying install it i got:
"Package AutoMoq 2.0.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package AutoMoq 2.0.0 supports: net45 (.NETFramework,Version=v4.5)"
The text was updated successfully, but these errors were encountered: