public void FibonacciSequenceTest()
        {
            FibonacciSequence request = new FibonacciSequence();
            FibonacciSequenceOperations op = new FibonacciSequenceOperations();

            request.Term = 6;

            List<int> expected = new List<int>() {0, 1, 1, 2, 3, 5};

            Assert.AreEqual(expected, op.CalculateSequence(request.Term));
        }
        public ActionResult FibonacciSequenceForm(FibonacciValidation model)
        {
            if (ModelState.IsValid)
            {
                var calc = new FibonacciSequenceOperations();
                var request = new FibonacciSequence();
                request.Term = model.Term.Value;

                var result = calc.CalculateSequence(request.Term);

                return View("FibonacciSequenceResult", result);
            }
            return View(model);
        }