﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » nUnit ...</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 28 Sep 2026 08:23:55 GMT</lastBuildDate><ttl>20</ttl><item><title>nUnit ...</title><link>http://forum.strataframe.net/FindPost14073.aspx</link><description>Currently I'm using nUnit successfully but in order to do so I must make a call to the SetDataSources() method in the AppMain.cs program ... nUnit tests are located in the BOLibrary proejct.&amp;nbsp; My first stab at accomplishing this was to add a reference to the BOLibrary project referencing the WinForms project then make the call.&amp;nbsp; Unfortunately this results in a cyclical reference error when nUnit testing is over and I'm dropping BOs on the forms.&amp;nbsp; I got around this by using VB6's method of inheritence (Ctrl+C) but would prefer not to duplicate code.&lt;/P&gt;&lt;P&gt;So, how do I make a call to FMG_CC.AppMain.SetDataSources() from the BOLibrary project... without including a reference to that project ... &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CT</description><pubDate>Wed, 06 Feb 2008 10:05:43 GMT</pubDate><dc:creator>Charles Thomas Blankenship</dc:creator></item><item><title>RE: nUnit ...</title><link>http://forum.strataframe.net/FindPost14078.aspx</link><description>First, we use unit testing as well (Team Foundation)....and we take a different approach.&amp;nbsp; We have a an entry point for unit testing that sets up the data sources....the only way that you call call the SetDataSources from a BO which is more than likely referenced by the entry point assembly (this would cause a circular reference) is to either create an interface that you apply to the AppMain class that just as a SetDataSources method ... or use reflection and invoke the method.</description><pubDate>Wed, 06 Feb 2008 10:05:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>