On bizUnit

Hi all.

i am new to bizunit..!

i wort BizTalk code like this

            

namespace BizTalkProjectTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void Total_Items_Is_3()
        {
            var totalItemsTest = new TestCase { Name = "Total Items is 3" };
            DeleteStep deleteStep = new DeleteStep();
            var filePathsToDelete = new Collection<string> { @"C:\BizTalkProject\BiztalkProject\sendPortCustomerSummary\*.xml" };
            deleteStep.FilePathsToDelete = filePathsToDelete;
            totalItemsTest.SetupSteps.Add(deleteStep);
            var testStep = new CreateStep();
            testStep.CreationPath = @"C:\BizTalkProject\BiztalkProject\ReceivePortCustomerOrder\InboundCorrect.xml";
            var dataLoader = new FileDataLoader();
            dataLoader.FilePath = @"..\..\..\TestData\InboundCorrect.xml";
            testStep.DataSource = dataLoader;
            totalItemsTest.ExecutionSteps.Add(testStep);
            var validatingFileReadStep = new FileReadMultipleStep
            {
                DirectoryPath = @"C:\BizTalkProject\BiztalkProject\sendPortCustomerSummary",
                SearchPattern = "*.xml",
                ExpectedNumberOfFiles = 1,
                Timeout = 3000,
                DeleteFiles = true
            };

            var validation = new XmlValidationStep();
            var schemaSummary = new SchemaDefinition
            {
                XmlSchemaPath =
                @"C:\BizTalkProject\BiztalkProject\BiztalkProject\CustomerSummary.xsd",
                XmlSchemaNameSpace =
                "http://BiztalkProject.CustomerSummary"
            };
            validation.XmlSchemas.Add(schemaSummary);


            validatingFileReadStep.SubSteps.Add(validation);

            totalItemsTest.ExecutionSteps.Add(validatingFileReadStep);

            var bizUnit = new BizUnit.BizUnit(totalItemsTest);
            bizUnit.RunTest();
        }
    }
}

when i start testing .. i am getting this error..

can any one solve this..

Thanks/..

October 3rd, 2013 1:33am

what is the error?
Free Windows Admin Tool Kit Click here and download it now
October 3rd, 2013 2:00am

October 3rd, 2013 2:26am

Try to put a break point and see to which directory it is pointing? as it is asking to verify directory
Free Windows Admin Tool Kit Click here and download it now
October 3rd, 2013 5:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics