Ejemplo n.º 1
0
        // init
        public Tester(FileParams vars, ILogger logger = null)
        {
            this.vars   = vars;
            this.logger = logger ?? new ConsoleLogger();

            mainWatch    = new Stopwatch();
            stepWatch    = new Stopwatch();
            transactions = new List <ITransaction>();
            this.clope   = new Clope(transactions);

            logger.Write();
        }
Ejemplo n.º 2
0
        static bool IsParamsGood()
        {
            if (System.IO.File.Exists(fileParams.Filename))
            {
                return(true);
            }
            else
            {
                Console.WriteLine("Bad params.\n");
                Console.WriteLine(FileParams.GetHelp());
                Console.ReadKey();
            }

            return(false);
        }