<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : [SOLVED] How to Unit Test DevForce EF</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : [SOLVED] How to Unit Test DevForce EF</description>
  <pubDate>Sat, 11 Apr 2026 08:27:58 -700</pubDate>
  <lastBuildDate>Wed, 30 Apr 2008 05:26:53 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=790</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>[SOLVED] How to Unit Test DevForce EF : Daniel,  Thanks for the reply.  For...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=790&amp;PID=2907#2907</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=293" rel="nofollow">philpastor</a><br /><strong>Subject:</strong> 790<br /><strong>Posted:</strong> 30-Apr-2008 at 5:26am<br /><br /><DIV></DIV>Daniel,<DIV>&nbsp;</DIV><DIV>Thanks for the reply.</DIV><DIV>&nbsp;</DIV><DIV>For anyone else looking for the solution, here is what I did:</DIV><DIV>Added a reference to IdeaBlade.Util.v4</DIV><DIV>Added a reference to System.Configuration</DIV><DIV>Added the following line to&nbsp;the ClassInitialize method of the test class:</DIV><DIV><FONT color=#2b91af size=2><P>IdeaBladeConfig</FONT><FONT size=2>.ConfigFileAssembly = System.Reflection.</FONT><FONT color=#2b91af size=2>Assembly</FONT><FONT size=2>.Load(</FONT><FONT color=#a31515 size=2>"AppHelper"</FONT><FONT size=2>);</P></FONT></DIV><DIV>...and yes, you also need to add the msl, csdl, ssdl files to the deployment tab of the testrunconfig.</DIV><DIV>&nbsp;</DIV><DIV>Phil</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 30 Apr 2008 05:26:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=790&amp;PID=2907#2907</guid>
  </item> 
  <item>
   <title>[SOLVED] How to Unit Test DevForce EF : I had the same problem and found...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=790&amp;PID=2904#2904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=275" rel="nofollow">danielp37</a><br /><strong>Subject:</strong> 790<br /><strong>Posted:</strong> 29-Apr-2008 at 10:00pm<br /><br />I had the same problem and found the solution for me here: <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=711" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=711</a><br><br>I also found that I needed to add the csdl, msl and ssdl as additional files to deploy in the testrunconfig deployment.<br>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 22:00:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=790&amp;PID=2904#2904</guid>
  </item> 
  <item>
   <title>[SOLVED] How to Unit Test DevForce EF : ok, I&amp;#039;ve been struggling...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=790&amp;PID=2900#2900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=293" rel="nofollow">philpastor</a><br /><strong>Subject:</strong> 790<br /><strong>Posted:</strong> 29-Apr-2008 at 12:31pm<br /><br /><DIV></DIV>ok, I've been struggling with this for a few hours now, and I give up. <DIV>&nbsp;</DIV><DIV>I am attempting to create unit tests for the Domain Model in VS 2008. I have an app.config file in my test project, and the ideablade section is in there. When I run the test, Visual Studio's testing framework deploys the app config file as "TestProject1.dll.config" (which is expected), along with all of the ssdl, csdl, msl files. When I attempt to access the EntityManager, I get the following error:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000cc>Class Initialization method TestProject1.TestDevForce.MyClassInitialize threw exception. IdeaBlade.Util.v4.IdeaBladeException:&nbsp; IdeaBlade.Util.v4.IdeaBladeException: Unable to obtain a valid configuration file on L3G1514.</FONT></DIV><DIV><FONT color=#0000cc>Possible cause: No IdeaBladeSection in config file (File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\CQConverter.exe.config)</FONT></DIV><DIV><FONT color=#0000cc>Probing path: <BR>1) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\CQConverter.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>2) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>3) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\diffmerge.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>4) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>5) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\TF.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>6) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\TfsBuild.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>7) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\TFSFieldMapping.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>8) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\vsdiag_regwcf.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>9) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VSSConverter.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>10) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VSTestHost.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>11) File: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VSTST-FileConverter.exe.config - found but failed to load: No IdeaBladeSection in config file<BR>12) Design-time execution detected - Will not probe for app.config in AppHelper<BR>13) app.config fallthru - Default app.config used<BR>14) Logging file: <BR>.</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Any thoughts?</DIV><span style="font-size:10px"><br /><br />Edited by philpastor - 30-Apr-2008 at 10:23am</span>]]>
   </description>
   <pubDate>Tue, 29 Apr 2008 12:31:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=790&amp;PID=2900#2900</guid>
  </item> 
 </channel>
</rss>