Example #1
0
        public void SplitExecuteAndGetMerged_ShouldReturnFullList()
        {
            var size   = (PositiveInt)3;
            var p      = Enumerable.Range(0, size.Value * 3).ToImmutableList();
            var result = Partitioner.SplitExecuteAndGetMerged(p, ints => ints, size);

            p.Count.ShouldBe(result.Count);
        }
Example #2
0
        public static ImmutableList <TResult> SplitExecuteAndGetMerged <TParam, TResult>(ImmutableList <TParam> input, IDbConnection connection, Func <ImmutableList <TParam>, IDbConnection, ImmutableList <TResult> > processingFunc, PositiveInt maxOffset)
        {
            var size = (PositiveInt)(2100 - maxOffset);

            return(Partitioner.SplitExecuteAndGetMerged(input, p => processingFunc(p, connection), size));
        }
Example #3
0
 public static ImmutableList <TResult> SplitExecuteAndGetMerged <TParam, TResult>(ImmutableList <TParam> input, IDbConnection connection, Func <ImmutableList <TParam>, IDbConnection, ImmutableList <TResult> > processingFunc)
 {
     return(Partitioner.SplitExecuteAndGetMerged(input, p => processingFunc(p, connection), (PositiveInt)2100));
 }