Skip to content

Commit

Permalink
Update Tests/VTEX.Integration.Tests/OrderGenerator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
gitauto-ai[bot] authored Dec 27, 2024
1 parent 321ee41 commit e83c3f7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Tests/VTEX.Integration.Tests/OrderGenerator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Bogus;

public class OrderGenerator
{
public static Order CreateFakeOrder()
{
var faker = new Faker<Order>()
.RuleFor(o => o.OrderId, f => f.Random.Guid().ToString())
.RuleFor(o => o.CustomerName, f => f.Name.FullName())
.RuleFor(o => o.Amount, f => f.Finance.Amount());

return faker.Generate();
}
}

public class Order
{
public string OrderId { get; set; }
public string CustomerName { get; set; }
public decimal Amount { get; set; }
}

0 comments on commit e83c3f7

Please sign in to comment.