Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 internal FluentActionCollection(FluentActionCollectionConfig config)
 {
     FluentActions = new List <FluentActionBase>();
     Config        = config ?? new FluentActionCollectionConfig();
 }
Ejemplo n.º 3
0
 public FluentActionCollectionConfigurator(FluentActionCollectionConfig config)
 {
     Config = config;
 }