<?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 : Unit Testing and XML serialization</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Unit Testing and XML serialization</description>
  <pubDate>Sat, 11 Apr 2026 09:51:14 -700</pubDate>
  <lastBuildDate>Tue, 16 Mar 2010 11:45:36 -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=1689</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>Unit Testing and XML serialization : Some additonal data on this.   I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1689&amp;PID=6367#6367</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=643" rel="nofollow">downeytim</a><br /><strong>Subject:</strong> 1689<br /><strong>Posted:</strong> 16-Mar-2010 at 11:45am<br /><br />Some additonal data on this. <DIV>&nbsp;</DIV><DIV>I have been able to serialize OUT to XML an instance of one of my Entity based classes.&nbsp; But the Deserialization fails with a Null Object Reference.&nbsp; Below is the exception. It looks like it is failing trying to find the EntityGroup for the object being created.&nbsp; Yet where was no group when it was serialized.&nbsp; It was created in code without an entity manager or group</DIV><DIV>&nbsp;</DIV><DIV>IdeaBlade.EntityModel.EntityWrapper.get_EntityGroup()<BR>IdeaBlade.EntityModel.EntityWrapper.get_EntityManager()<BR>IdeaBlade.EntityModel.EntityWrapper.get_VerifierEngine()<BR>SetValueWithVerification(DataEntityPropertySetInterceptorArgs`2 setterArgs)<BR>b__4(DataEntityPropertySetInterceptorArgs`2 args)<BR>HandleAction(Action`1 action, TArgs args)<BR>b__3(TArgs args)<BR>ExecuteActions(TArgs args)<BR>SetValue(TInstance instance, Object context, TValue value)<BR>SetValue(TInstance instance, TValue value)<BR>SetValue(TInstance instance, TValue value)<BR>CSS.Data.Test.TestClass.set_Name(String value) in C:\Dev\Cypress\Cypress.Framework\Main\CSS.Data\CSS.Data.Test\UnitTest1.cs: line 281<BR>ReadTestClassFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString&#091;&#093; , XmlDictionaryString&#091;&#093; )<BR>System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)<BR>System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)<BR>System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, DataContract&amp; dataContract)<BR>System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)<BR>System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)<BR>System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)<BR>System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)<BR>System.Runtime.Serialization.XmlObjectSerializer.ReadObject(Stream stream)<BR>CSS.Data.Test.UnitTest1.DeserializeBusObject&#091;T&#093;(String filename, T&amp; entity) in C:\Dev\Cypress\Cypress.Framework\Main\CSS.Data\CSS.Data.Test\UnitTest1.cs: line 211<BR>CSS.Data.Test.UnitTest1.LoadTestClassFromXmlTest() in C:\Dev\Cypress\Cypress.Framework\Main\CSS.Data\CSS.Data.Test\UnitTest1.cs: line 186<BR></DIV>]]>
   </description>
   <pubDate>Tue, 16 Mar 2010 11:45:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1689&amp;PID=6367#6367</guid>
  </item> 
  <item>
   <title>Unit Testing and XML serialization : Is there any way to create an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1689&amp;PID=6365#6365</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=643" rel="nofollow">downeytim</a><br /><strong>Subject:</strong> 1689<br /><strong>Posted:</strong> 16-Mar-2010 at 6:11am<br /><br />Is there any way to create an XML file that contains entities to be used to load the EntityManager with and run unit tests.&nbsp; We want to create a "mock" situation where we can run unit tests without have a DB present.&nbsp; We want to create an XML file that contains the data for the tests, load it into a disconnected EntityManager, run our tests and check the results.]]>
   </description>
   <pubDate>Tue, 16 Mar 2010 06:11:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1689&amp;PID=6365#6365</guid>
  </item> 
 </channel>
</rss>