public OrderCounter(int listCount, OrderAlgorithmBase algorithm) { _stopWatch = new Stopwatch(); _targetList = new int[listCount]; var ramdom = new Random(); for (int i = 0; i < _targetList.Count(); i++) { _targetList[i] = ramdom.Next(10000); } _algorithm = algorithm; }
public OrderCounter(int[] targetList, OrderAlgorithmBase algorithm) { _stopWatch = new Stopwatch(); _targetList = targetList; _algorithm = algorithm; }