This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Do you have anything to hand? I also noted on another thread that you suggest enriching entities with behaviour to create business objects as apposed to business entities. Do you have an example of this also as I would like see how this approach stacks up against using a Service Layer especially with regards to testing? Regards, Jim |
|
|
Hi Jim, Thanks for your post. Jeremy wrote a series last year on using ASP.NET MVC with LightSpeed here: http://www.mindscape.co.nz/staff/jeremy/index.php/category/mvc/ In that he used Ninject and shows various practices to have LightSpeed work nicely with ASP.NET MVC. He doesn't however use the new TestUnitOfWork or EntityFactory since that did not exist at the time. I will look at creating some blog posts / samples etc around the new testing capabilities in LightSpeed 3.0. We have a page in our help documentation about them but it's more an initial reference than a real world example. Specifically, the TestUnitOfWork means you do not need to mock up a unit of work to return pre-canned data and EntityFactory simply lets you create an Entity with a given state which was previously quite a challenge for LightSpeed users in a testing situation where it was common. I hope that helps, John-Daniel Trask |
|
|
FWIW, I'd like to second this - it would be very helpful. Thanks, John |
|
|
Hi, Jim
|
|
|
I would love to see this as well. |
|