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)); }
public void Receive_FullPipeline() { FFDisassembler ff = Disassembler.FlatFile() .WithDocumentSpec <Schema3_FF>(); ReceivePipelineWrapper pipeline = Pipelines.Receive() .WithDisassembler(ff); IBaseMessage input = MessageHelper.CreateFromStream( DocLoader.LoadStream("CSV_FF_RecvInput.txt") ); MessageCollection output = pipeline.Execute(input); Assert.AreEqual(1, output.Count); }