Ejemplo n.º 1
0
        public Parameters(IRandomizer randomizer, IEnumerable <string> args)
        {
            _dictionary      = GetDictionary(args);
            IsVerboseEnabled = GetIsVerboseEnabled();
            ShowAllResults   = GetShowAllResults();
            var numbers = GetNumbers();

            IsUsingRandomNumbers = numbers == null;
            Numbers = numbers ?? randomizer.GetRandomNumbers();
            var target = GetTarget();

            IsUsingRandomTarget = target == null;
            Target   = target ?? randomizer.GetRandomTarget();
            ShowHelp = GetShowHelp();
        }