Re: Testing a policy in BizTalk rules engine

Home Page Forums BizTalk 2004 – BizTalk 2010 Testing a policy in BizTalk rules engine Re: Testing a policy in BizTalk rules engine

#15730
Create a fact creator, then drop it in the GAC.  Then you can test via the Composer …
public class MyFactCreator : IFactCreator
   {
      private object[] myFacts;
      public MyFactCreator()
      {
      }
      public object[] CreateFacts ( RuleSetInfo rulesetInfo )
      {
         myFacts = new object[1];
         myFacts.SetValue(new MySampleBusinessObject(),0);
         return myFacts;
      }
      public Type[] GetFactTypes (RuleSetInfo rulesetInfo)
      {
         return null;
      }
   }