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, I'm using the TestUnitOfWork in my unit tests. I notice that when SaveChanges() is called, the state of any new entities that have been added to the UOW remains at EntityState.New. This causes problems for my application logic under test, which has different code paths depending on the state of an entity. Would it be possible to change TestUnitOfWork so that entities correctly change state when SaveChanges() is called? Thanks, Greg |
|
|
bump |
|
|
Hi Greg, Sorry for the slow reply. This is a great suggestion and I don't know why I didn't mark entities as being in a default state previously. This will be in the next nightly build for you dated 7th of April 2010. I hope that helps, John-Daniel |
|
|
Sounds great. Thanks, Greg |
|