public void CorrectedCalculationService_ShouldCorrectResult()
        {
            var sut = new CorrectedCalculationService(new CalculationService());

            Action calculation = () => sut.Calculate(1, 2);

            sut.Calculate(1, 2).Should().Be(27);
        }
        public void DecoratedCorrectedCalculationService_ShouldUseCache()
        {
            var sut = new CorrectedCalculationService(new CachedCalculationService(new CalculationService()));

            Action calculation = () => sut.Calculate(1, 2);

            calculation();

            calculation.ExecutionTime().Should().BeLessThan(TimeSpan.FromMilliseconds(10));
        }