Exemplo n.º 1
0
        public void Register_IProcessor_AddToDictioanry()
        {
            _Builder.Register(_Processor);
            _Builder.GetBackBone();

            _Processors.Cast <KeyValuePair <Type, object> >().Should().BeEquivalentTo(new KeyValuePair <Type, object>[]
            {
                new KeyValuePair <Type, object>(typeof(string), _Processor)
            });
        }
Exemplo n.º 2
0
        public CreatingPipeline()
        {
            var builder = new BackBoneBuilder <bool, int>();

            builder.Register(new Transformer());
            builder.Register(new Parser());
            builder.Register(new Counter());
            _BackBone = builder.GetBackBone();
        }