/// <summary> /// Defines settings that will be applied to all subsequently defined fluent actions. /// Calling this method a second time will overwrite the current config but will not overwrite previously /// defined fluent actions. /// </summary> /// <param name="configureFluentActions">Action that will define the config of future fluent actions</param> public void Configure(Action <FluentActionCollectionConfigurator> configureFluentActions) { var configurator = new FluentActionCollectionConfigurator(new FluentActionCollectionConfig()); configureFluentActions(configurator); Config = configurator.Config; }
internal FluentActionCollection(FluentActionCollectionConfig config) { FluentActions = new List <FluentActionBase>(); Config = config ?? new FluentActionCollectionConfig(); }
public FluentActionCollectionConfigurator(FluentActionCollectionConfig config) { Config = config; }