As we know, shims are used in unit test, I don't think the realtime test data should be applied in this scenario. Instead, should use fixed test data, in which case the test is isolated as much as possible from other dependencies. Does that sound make sense?
If you are testing web application, involves session in test, you can record a web test. Visual Studio can parameterize the test automatically.
Reference:
http://msdn.microsoft.com/en-us/library/hh549175.aspx
Forrest Guo | MSDN Community Support | Feedback to manager