home recent topics recent posts search faq  

Pretty Objects Visual T# Forum



register | lost password   open id sign in with Twitter
Messages in this topic - RSS

Home » T# Test Runners » Entity Framework Support

Conversations on T# Tests Runners features, usability, wish list...
2/8/2011 5:07:48 PM

sbrauen
sbrauen
Posts: 4
Does T# work with the Enity Framework? I'm trying to test a method that is invoking an entity context and I keep getting an error. I've tested the application in question and it works fine so I know there's not a problem there.
Here's a copy of the error I keep getting:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

As a test I added in the config file from my data project, but that didn't change anything.
Thanks!
0 permalink
2/8/2011 5:25:57 PM

Ludovic Dubois
Ludovic Dubois
Administrator
Posts: 159
Within Visual Studio 2010, tests are run through tsharp-remote.exe. So, used configuration is tsharp-remote.exe.config and not yours!
You have to load your config file at runtime (see testcontext documentation to do it once only).


We will add code to do that automatically... soon smile
0 permalink
2/8/2011 5:28:32 PM

sbrauen
sbrauen
Posts: 4
Will this work within VS2008 as well?
0 permalink
2/8/2011 6:41:08 PM

Ludovic Dubois
Ludovic Dubois
Administrator
Posts: 159
Sure!
0 permalink

Home » T# Test Runners » Entity Framework Support





Powered by Jitbit Forum 7.2.14.1 © 2006-2011 Jitbit Software