public void A_Aggregate_must_work_when_using__Source_Aggregate_and_Flow_Aggregate_and_Sink_Fold() { this.AssertAllStagesStopped(() => { var task = FoldSource.Via(FoldFlow).RunWith(FoldSink, Materializer); task.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue(); task.Result.Should().Be(Expected); }, Materializer); }
public void A_Aggregate_must_work_when_using_Source_Fold() { this.AssertAllStagesStopped(() => { var task = FoldSource.RunWith(Sink.First <int>(), Materializer); task.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue(); task.Result.Should().Be(Expected); }, Materializer); }