Trying to generate items for a database using Bogus using this code:
var products = new Faker<Product>()
.StrictMode(true)
.RuleFor(e => e.Id, f => 0)
.RuleFor(e => e.Name, (f, u) => f.Commerce.Product())
.RuleFor(e => e.Price, (f, u) => Convert.ToDecimal(f.Commerce.Price()))
.RuleFor(e => e.EanCode, (f, u) => f.Commerce.Ean8())
.RuleFor(e => e.Category, (f, u) => f.Commerce.Categories(5));
And the Categories needed a int parameter but when I add it I get the error Cannot convert lambda expression to type 'Category' because it is not a delegate type.