public void test_that_the_GetValueToRenderInTableCell_returns_a_product_of_two_numbers()
        {
            // Arrange
            var viewModel = new NumbersTableDisplayModel(5);

            viewModel.ListOfNumbers = new int[] { 1, 2, 3, 4, 5 };

            // Act
            var actualProductOfNumbers = viewModel.GetValueToRenderInTableCell(1, 4);

            // Assert
            Assert.That(actualProductOfNumbers, Is.EqualTo(10)); // We should get 2 * 5 = 10
        }
        public virtual ActionResult Generate(int totalOfNumbers)
        {
            ValidateInput(totalOfNumbers);

            if (ModelState.IsValid)
            {
                _logger.Debug("Creating the PrimeNumbersTableDisplayModel in the controller");
                var primeNumbersTableDisplayModel = new NumbersTableDisplayModel(totalOfNumbers)
                {
                    ListOfNumbers = this._numbersService.GetListOfFibonacciNumbers(totalOfNumbers)
                };

                _logger.Debug("Returning the Generate view");
                return(View(primeNumbersTableDisplayModel));
            }

            return(RedirectToAction("Index", "Home"));
        }