Example #1
0
        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));
        }
Example #2
0
        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);
        }