public IBigEitherInletPipe <TMessage, TTieBreaker> Build() { var promisedPipe = new Promised <IPipe>(); var inlets = Enumerable.Repeat <Func <SimpleInlet <TMessage> > >(() => new SimpleInlet <TMessage>(promisedPipe), Size).Select(f => f()).ToList(); var outlet = new SimpleOutlet <TMessage>(promisedPipe); return(promisedPipe.Fulfill(new BigEitherInletPipe <TMessage, TTieBreaker>(inlets, outlet, TieBreaker))); }
public void SetUp() { pipe = PipeBuilder.New.BasicPipe <int>().Build(); inlet = pipe.Inlet; simpleOutlet = (SimpleOutlet <int>)pipe.Outlet; }
public void SetUp() { pipe = PipeBuilder.New.BasicPipe<int>().Build(); inlet = pipe.Inlet; simpleOutlet = (SimpleOutlet<int>) pipe.Outlet; }