public static void Main()
Faker<Book> Book = new Faker<Book>()
.RuleFor(x => x.Id, f => f.Random.Guid())
.RuleFor(x => x.Title, f => f.Company.CompanyName())
.RuleFor(x => x.Price, f => f.Random.Double())
.RuleFor(x => x.ISBN, f => $"ISBN_{f.Random.Guid()}")
.RuleFor(x => x.Genre, f => f.PickRandom<Genre>());
var book = Book.Generate();
var jsonBook = JsonConvert.SerializeObject(book, Formatting.Indented);
Console.WriteLine(jsonBook);
public Guid Id { get; set; }
public string Title { get; set; }
public double Price { get; set; }
public string ISBN { get; set; }
public Genre Genre { get; set; }