public void TestEvenSequence()
 {
     NumbericSequence ns = new NumbericSequence(6);
     List<string> actual = ns.GetEvenSequence();
     List<string> expected = new List<string>();
     expected.Add("2");
     expected.Add("4");
     expected.Add("6");
     CollectionAssert.AreEqual(actual, expected);
 }
        public async Task<ActionResult> Sequence(NumbericSequence model)
        {
            // var inputNumberValue = Request["inputNumberValue"];
            if (ModelState.IsValid)
            {
                List<string> result = new List<string>();

                model = new NumbericSequence(model.CurrentNumber);
                result = null;

                if (Request.Form["Sequence"] != null)
                {
                    result = model.GetSequence();
                }

                if (Request.Form["OddSequence"] != null)
                {
                    result = model.GetOddSequence();
                }

                if (Request.Form["EvenSequence"] != null)
                {
                    result = model.GetEvenSequence();
                }

                if (Request.Form["CEZSequence"] != null)
                {
                    result = model.GetCEZSequence();
                }

                if (Request.Form["FibonacciSequence"] != null)
                {
                    result = model.GetFibonacciSequence();
                }
                model.SequenceResult = result;
            }
               
               return View(model);
        }