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

#15726

DebugTrackingInterceptor dti = new DebugTrackingInterceptor(@"C:\NISHIL\outputtrace.txt");

//create an instance of the XML object

dti = new DebugTrackingInterceptor(@"C:\NISHIL\outputtrace.txt");

//create an instance of the XML object

//create an instance of the XML object

XmlDocument xd1 = new XmlDocument();

xd1.Load(@"C:\NISHIL\Input.xml");

TypedXmlDocument doc1 = new TypedXmlDocument("NishBizTest.Input", xd1);

// create the array of short-term facts

XmlDocument xd1 = new XmlDocument();

xd1.Load(@"C:\NISHIL\Input.xml");

TypedXmlDocument doc1 = new TypedXmlDocument("NishBizTest.Input", xd1);

// create the array of short-term facts

@"C:\NISHIL\Input.xml");

TypedXmlDocument doc1 = new TypedXmlDocument("NishBizTest.Input", xd1);

// create the array of short-term facts

TypedXmlDocument doc1 = new TypedXmlDocument("NishBizTest.Input", xd1);

// create the array of short-term facts

// create the array of short-term facts

object[] shortTermFacts = new object[1];

shortTermFacts[0] = doc1;

Policy policy = null;

object[] shortTermFacts = new object[1];

shortTermFacts[0] = doc1;

Policy policy = null;

Policy policy = null;

policy = new Policy("NishBizTest");

policy.Execute(shortTermFacts, dti);

FileInfo finfo = new FileInfo(@"C:\NISHIL\Output.xml");

StreamWriter writer = finfo.CreateText();

writer.Write(doc1.Document.OuterXml);

writer.Close();

FileInfo finfo = new FileInfo(@"C:\NISHIL\Output.xml");

StreamWriter writer = finfo.CreateText();

writer.Write(doc1.Document.OuterXml);

writer.Close();

StreamWriter writer = finfo.CreateText();

writer.Write(doc1.Document.OuterXml);

writer.Close();