public bool IsSatisfiedBy(IStepRepository stepRepository, SkipContext skipContext) { if (SkipLimit == 0) return false; int exceptionCount = stepRepository.GetExceptionCount(skipContext); if (exceptionCount >= SkipLimit || !_skippableExceptions.Contains(skipContext.GetExceptionType())) return false; stepRepository.SaveExceptionInfo(skipContext, exceptionCount); return true; }
public bool IsSatisfiedBy(IStepRepository stepRepository, SkipContext skipContext) { if (SkipLimit == 0) { return(false); } int exceptionCount = stepRepository.GetExceptionCount(skipContext); if (exceptionCount >= SkipLimit || !_skippableExceptions.Contains(skipContext.GetExceptionType())) { return(false); } stepRepository.SaveExceptionInfo(skipContext, exceptionCount); return(true); }