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
|
I am just trying to setup a TestUnitOfWork and have come across a few issues: I have a Service that I pass IUnitOfWork into and it has a very simple method: The test method that calls this is as follows: // Arrange var expectedItems = new List<Entity> { item1 }; _unitOfWork.SetExpectedCollectionResult(expectedItems); // Act // Assert var value = _localisationService.Localise("New Item Key"); 1. How do I define in the TestUnitOfWork the identity generation if KeyTable is used. I don't want to connect the TestUnitOfWork context to a physical db as it sort of misses the point of using the TestUnitOfWork fake really. |
|
|
Hi Jim, Thanks for your feedback! We're always happy to get requests for enhancements and to hear how folks want to work with the TestUnitOfWork. Specifically to your two points:
Again, thanks for the feedback, I'll update once I have an answer on point 2. John-Daniel Trask |
|