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