コード例 #1
0
        public ActionResult Details(int number)
        {
            ISequenceCalculator calculator = BusinessConstructor.TestCalculator();
            var result = calculator.CalculateSequences(number);

            return(View("Index", result));
        }
コード例 #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);
            }
        }