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
|
Hello, I am currently creating a test simulation for a web app I am developing, and it involves changing the date so events appear to be in the past. I am aware in VS 2010 that I can override DateTime.Now with Moles for this purpose, but I am using VS 2008 which doesn't have this functionality, so instead my DateTime.Now calls are replaced with a custom function. However my application uses CreatedOn and UpdateOn to keep track of record changes, how can I override the event so these dates are also changed? Thanks
|
|
|
Use a custom timestamp strategy: http://www.mindscapehq.com/blog/index.php/2009/03/09/custom-timestamps-in-lightspeed/ |
|
|
Thanks Ivan I will give that a try ;)
|
|