public static IPostprocessComposer <T> With <T>(
            this ICustomizationComposer <T> ob,
            Expression <Func <T, string> > propertyPicker,
            int minimumLength,
            int maximumLength)
        {
            var me        = (MemberExpression)propertyPicker.Body;
            var name      = me.Member.Name;
            var generator =
                new ConstrainedStringGenerator(
                    minimumLength, maximumLength);
            var value = generator.CreateaAnonymous(name);

            return(ob.With(propertyPicker, value));
        }
 protected virtual IPostprocessComposer <CipherAttachment.MetaData> ComposerAction(IFixture fixture,
                                                                                   ICustomizationComposer <CipherAttachment.MetaData> composer)
 {
     return(composer.With(d => d.Size, fixture.Create <long>()).Without(d => d.SizeString));
 }
 public static IPostprocessComposer <T> With <T, TProperty>(
     this ICustomizationComposer <T> @this,
     Expression <Func <T, TProperty> > propertyPicker,
     Func <Faker, TProperty> valueFactory) =>
 @this.With(propertyPicker, () => valueFactory(faker));
 private IPostprocessComposer <Size> ConfigureDefaults(ICustomizationComposer <Size> composer)
 => composer
 .With(size => size.Width, NumberValueFactories.NonNegative)
 .With(size => size.Height, NumberValueFactories.NonNegative);