public void CanAddMultiRootDocSpec() { ReceivePipelineWrapper pipeline = PipelineFactory.CreateEmptyReceivePipeline(); pipeline.AddDocSpec(typeof(Schema1_NPP)); IDocumentSpec docSpec = null; docSpec = pipeline.GetKnownDocSpecByName(typeof(Schema1_NPP.Root).AssemblyQualifiedName); Assert.IsNotNull(docSpec); docSpec = pipeline.GetKnownDocSpecByName(typeof(Schema1_NPP.Root2).AssemblyQualifiedName); Assert.IsNotNull(docSpec); docSpec = pipeline.GetKnownDocSpecByType("http://SampleSchemas.Schema1_NPP#Root"); Assert.IsNotNull(docSpec); docSpec = pipeline.GetKnownDocSpecByType("http://SampleSchemas.Schema1_NPP#Root2"); Assert.IsNotNull(docSpec); }
public void Receive_XmlDisassemblerSchemasAddedToPipeline() { XmlDisassembler xml = Disassembler.Xml() .WithDocumentSpec <Schema1_NPP.Root>(); ReceivePipelineWrapper pipeline = Pipelines.Receive() .WithDisassembler(xml); string name = typeof(Schema1_NPP.Root).AssemblyQualifiedName; Assert.IsNotNull(pipeline.GetKnownDocSpecByName(name)); }
public void Receive_FFDisassemblerSchemasAddedToPipeline() { FFDisassembler ff = Disassembler.FlatFile() .WithDocumentSpec <Schema3_FF>(); ReceivePipelineWrapper pipeline = Pipelines.Receive() .WithDisassembler(ff); string name = typeof(Schema3_FF).AssemblyQualifiedName; Assert.IsNotNull(pipeline.GetKnownDocSpecByName(name)); }