Beispiel #1
0
 public static Faker <Movement> GenerateFaker()
 {
     return(new Faker <Movement>()
            .CustomInstantiator(f =>
                                new Movement(ProductFaker.GenerateFaker().Generate())
                                ));
 }
Beispiel #2
0
 public static Faker <AdjustmentItem> GenerateFaker(Adjustment adjustmentItem)
 {
     return(new Faker <AdjustmentItem>()
            .CustomInstantiator(f =>
                                new AdjustmentItem(
                                    f.Random.Int(1, 100),
                                    f.Random.Decimal(1, 100),
                                    adjustmentItem,
                                    ProductFaker.GenerateFaker().Generate()
                                    )
                                ));
 }
 public static Faker <PurchaseItem> GenerateFaker(Purchase purchase)
 {
     return(new Faker <PurchaseItem>()
            .CustomInstantiator(f =>
                                new PurchaseItem(
                                    f.Random.Int(1, 100),
                                    f.Random.Decimal(1, 100),
                                    purchase,
                                    ProductFaker.GenerateFaker().Generate()
                                    )
                                ));
 }
 public static Faker <OutputItem> GenerateFaker(Output output)
 {
     return(new Faker <OutputItem>()
            .CustomInstantiator(f =>
                                new OutputItem(
                                    f.Random.Int(1, 100),
                                    f.Random.Decimal(1, 100),
                                    output,
                                    ProductFaker.GenerateFaker().Generate()
                                    )
                                ));
 }