public void Should_Calculate_Last_Page_If_Previous_Page_Does_Not_Exist()
        {
            // Arrange
            PageCalculator pageCalculator = CreatePageCalculator(0);
            var            expectedPage   = new Page(10, 12, 3, 3);

            // Act
            Page result = pageCalculator.CalculatePreviousPage();

            // Assert
            result.Should().BeEquivalentTo(expectedPage);
            pageCalculator.CurrentOffset.Should().Be(10);
        }
        public void Should_Calculate_Previous_Page()
        {
            // Arrange
            PageCalculator pageCalculator = CreatePageCalculator(5);
            var            expectedPage   = new Page(0, 5, 1, 3);

            // Act
            Page result = pageCalculator.CalculatePreviousPage();

            // Assert
            result.Should().BeEquivalentTo(expectedPage);
            pageCalculator.CurrentOffset.Should().Be(0);
        }