public ActionResult Details(int number) { ISequenceCalculator calculator = BusinessConstructor.TestCalculator(); var result = calculator.CalculateSequences(number); return(View("Index", result)); }
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); } }