public ActionResult Details(int number)
        {
            ISequenceCalculator calculator = BusinessConstructor.TestCalculator();
            var result = calculator.CalculateSequences(number);

            return(View("Index", result));
        }
Example #2
0
        public void Validate()
        {
            TestData            data        = TestData.Instance;
            IList <int>         testSamples = data.GetListOfNumbers();
            ISequenceCalculator calculator  = BusinessConstructor.TestCalculator();

            foreach (var item in testSamples)
            {
                var result = calculator.CalculateSequences(item);
                ValidateSequence(item, result);
            }
        }