Exemplo n.º 1
0
        internal TBuilder WithOverride <TBuilder>(AutoGeneratorOverride generatorOverride, TBuilder builder)
        {
            if (generatorOverride != null)
            {
                var existing = Config.Overrides.Any(o => o == generatorOverride);

                if (!existing)
                {
                    Config.Overrides.Add(generatorOverride);
                }
            }

            return(builder);
        }
Exemplo n.º 2
0
 IAutoFakerConfigBuilder IAutoConfigBuilder <IAutoFakerConfigBuilder> .WithOverride(AutoGeneratorOverride generatorOverride) => WithOverride <IAutoFakerConfigBuilder>(generatorOverride, this);