Schema Validation in BizUnit

May 7, 2015 at 8:09 AM
Hi ,

I am trying to validate an input file against the schema through BizUnit.Below is the Code :

var validation = new XmlValidationStep();
        var s = new SchemaDefinition
            XmlSchemaPath =//Schema File Location

            XmlSchemaNameSpace =//Schema Namespace

        BizUnit.Context ctx = new BizUnit.Context();
        var data = StreamHelper.LoadFileToStream(@"\\File Location");
        validation.Execute(data, ctx);
But whatever input file I put,even if the namespace is not as expected ..The test passes..
Is this the way? Or passing something to XpathValidations is mandatory??