Esempio n. 1
0
        public static RunConfiguration New(Action <IRunnerConfigurator> action)
        {
            var configurator = new RunnerConfigurator();

            action(configurator);

            return(configurator.Create());
        }
Esempio n. 2
0
        public static RunConfiguration New([NotNull] Action <IRunnerConfigurator> action)
        {
            if (action == null)
            {
                throw new ArgumentNullException("action");
            }

            var configurator = new RunnerConfigurator();

            action(configurator);

            return(configurator.Create());
        }