using FizzWare.NBuilder.Generators;
public static void Main()
var categories = Builder<Category>
.With(x => x.Name = GetRandom.String(10))
var products = Builder<Product>
.With(x => x.Name = GetRandom.String(10))
.With(x => x.Price = GetRandom.Int(100, 400))
.With(x => x.Category = Pick<Category>.RandomItemFrom(categories))
.With(x => x.Url = GetRandom.WwwUrl())
var fakerProduct = Builder<Product>
.With(x => x.Name = Faker.Lorem.GetFirstWord())
.With(x => x.Description = Faker.Lorem.Paragraph())
.With(x => x.Price = Faker.RandomNumber.Next(100, 400))
.With(x => x.Category = Pick<Category>.RandomItemFrom(categories))
.With(x => x.Url = "http://" + Faker.Internet.DomainName())
public string Name { get; set; }
public string Description { get; set; }
public Category Category { get; set; }
public string Url { get; set; }
public int Price { get; set; }
public int Id { get; set; }
public string Name { get; set; }