Пример #1
0
        public async Task KeepSameBatchSizeIf94PercentFinishedOnTimeAndBatchSizeIsOne()
        {
            behaviour = new BatchSizeGoverningBehaviour(0.5, NullLogger <BatchSizeGoverningBehaviour> .Instance, initialBatchSize: 1);
            await ProcessWithPercentExpired(6, ErrorDirection.EnsureAtLeast).ConfigureAwait(false);

            Assert.AreEqual(1, behaviour.CalculateNewRecommendedBatchSize(2));
        }
Пример #2
0
 public void InitiallyReturnTheInitialBatchSize()
 {
     Assert.AreEqual(InitialBatchSize, behaviour.CalculateNewRecommendedBatchSize(10));
 }