public static IEnumerable <object[]> FactoriesWithNullableFillingDisabled()
            {
                var customizedBehavior = new FillWithSequentialValuesBehavior(options => options.FillNullables = false);

                return(new List <object[]>
                {
                    new object[] { new CustomerFactory(customizedBehavior) },
                    new object[] { MagicFactory.For <Customer>().WithBehavior(customizedBehavior) }
                });
            }
            public static IEnumerable <object[]> FactoriesWithDefaultBehavior()
            {
                var behavior = new FillWithSequentialValuesBehavior();

                return(new List <object[]>
                {
                    new object[] { new CustomerFactory(behavior) },
                    new object[] { MagicFactory.For <Customer>().WithBehavior(behavior) }
                });
            }
            public static IEnumerable <object[]> FactoriesWithRecursionDisabled()
            {
                var customizedBehavior = new FillWithSequentialValuesBehavior(options =>
                {
                    options.Recursive = false;
                });

                return(new List <object[]>
                {
                    new object[] { new CustomerFactory(customizedBehavior) },
                    new object[] { MagicFactory.For <Customer>()
                                   .WithBehavior(new FillWithSequentialValuesBehavior(options =>
                                                                                      options.Recursive = false)
                                                 ) }
                });
            }
            public static IEnumerable <object[]> FactoriesWithDefaultBehavior()
            {
                var customizedBehavior = new FillWithSequentialValuesBehavior(options =>
                {
                    options.DateTimeOptions = new DateTimeSequenceOptions
                    {
                        StartDate          = 25.December(2020).At(22.Hours()),
                        DateTimeIncrements = DateTimeIncrements.Hours
                    };
                });

                return(new List <object[]>
                {
                    new object[] { new CustomerFactory(customizedBehavior) },
                    new object[] { MagicFactory.For <Customer>().WithBehavior(customizedBehavior) }
                });
            }
 public CustomerFactory(FillWithSequentialValuesBehavior customizedBehavior)
 {
     _customizedBehavior = customizedBehavior;
 }