Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Machine.Specifications and Entity Framework Examples

I'm trying to find some best-practice examples (or any examples, actually) of using Machine.Specifications with the ASP.Net Entity Framework in an MVC project.

Not having had much experience with Machine.Specifications, I'm keen to see what sort of tests other people find useful and whether there are any gotchas for using the EF-generated objects instead of custom-built ones.

Pointers, suggestions and examples much appreciated.

like image 997
Phil.Wheeler Avatar asked Mar 20 '26 17:03

Phil.Wheeler


1 Answers

This is the blog post that got me started using machine.spec, http://blog.wekeroad.com/blog/make-bdd-your-bff-2/

Rob, goes through the complete setup, from installation to writing specs. It doesn't use EF, but it should still get you headed in the right direction. I used SubSonic in my learning project.

like image 167
37Stars Avatar answered Mar 22 '26 13:03

37Stars