示例#1
0
        public static RunConfiguration New(Action <IRunnerConfigurator> action)
        {
            var configurator = new RunnerConfigurator();

            action(configurator);

            return(configurator.Create());
        }
示例#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());
        }