public void SetUp() { capacityPipe = PipeBuilder.New.CapacityPipe<int>().WithCapacity(100).Build(); splittingPipe = PipeBuilder.New.SplittingPipe<int>().Build(); sinkPipe1 = PipeBuilder.New.SinkPipe<int>().Build(); sinkPipe2 = PipeBuilder.New.SinkPipe<int>().Build(); sourcePipe = PipeBuilder.New.SourcePipe<int>().WithMessageProducer(() => 1).Build(); capacityPipe.Outlet.ConnectTo(splittingPipe.Inlet); splittingPipe.RightOutlet.ConnectTo(sinkPipe1.Inlet); }
public void SetUp() { capacityPipe = PipeBuilder.New.CapacityPipe <int>().WithCapacity(100).Build(); splittingPipe = PipeBuilder.New.SplittingPipe <int>().Build(); sinkPipe1 = PipeBuilder.New.SinkPipe <int>().Build(); sinkPipe2 = PipeBuilder.New.SinkPipe <int>().Build(); sourcePipe = PipeBuilder.New.SourcePipe <int>().WithMessageProducer(() => 1).Build(); capacityPipe.Outlet.ConnectTo(splittingPipe.Inlet); splittingPipe.RightOutlet.ConnectTo(sinkPipe1.Inlet); }
public void SetUp() { sourcePipe = PipeBuilder.New.SourcePipe<int>().WithMessageProducer(() => repeatedMessage).Build(); }
public void SetUp() { cargoShip = PipeBuilder.New.CapacityPipe <int>().WithCapacity(1000).Build(); producer = PipeBuilder.New.SourcePipe <int>().WithMessageProducer(new Producer().Produce).Build(); consumer = PipeBuilder.New.SinkPipe <int>().Build(); }
public void SetUp() { sourcePipe = PipeBuilder.New.SourcePipe <int>().WithMessageProducer(() => repeatedMessage).Build(); }
public void SetUp() { cargoShip = PipeBuilder.New.CapacityPipe<int>().WithCapacity(1000).Build(); producer = PipeBuilder.New.SourcePipe<int>().WithMessageProducer(new Producer().Produce).Build(); consumer = PipeBuilder.New.SinkPipe<int>().Build(); }