using System.Collections.Generic;
public static void Main()
OrderManager bookManager = new();
var orders = bookManager.GetAllOrdersWithAmountMoreThan100();
foreach(var order in orders)
Console.WriteLine(order);
public int Id { get; set; }
public string Name { get; set; }
public string Author { get; set; }
public int Price { get; set; }
public int Id { get; set; }
public string Name { get; set; }
public string Address { get; set; }
public double Age { get; set; }
public int CustomerId { get; }
public Dictionary<int, int> BookQuantities { get; }
public Order(int id, int customerId, Dictionary<int, int> bookQuantities)
BookQuantities = bookQuantities;
public override string ToString() => $"{Id}; {CustomerId}; <{(string.Join(',', BookQuantities))}>";
public class OrderManager
public IEnumerable<Book> Books = new List<Book>
new Book { Id = 1, Name = "Book1", Author = "Author1", Price = 100 },
new Book { Id = 2, Name = "Book2", Author = "Author2", Price = 200 },
new Book { Id = 3, Name = "Book3", Author = "Author3", Price = 300 },
new Book { Id = 4, Name = "Book4", Author = "Author4", Price = 400 },
new Book { Id = 5, Name = "Book5", Author = "Author5", Price = 500 },
new Book { Id = 6, Name = "Book6", Author = "Author6", Price = 600 },
new Book { Id = 7, Name = "Book7", Author = "Author7", Price = 700 },
new Book { Id = 8, Name = "Book8", Author = "Author8", Price = 800 },
new Book { Id = 9, Name = "Book9", Author = "Author9", Price = 900 },
new Book { Id = 10, Name = "Book10", Author = "Author10", Price = 1000 }
public IEnumerable<Customer> Customers = new List<Customer>
new Customer { Id = 1, Name = "Customer1", Address = "Address1", Age = 20 },
new Customer { Id = 2, Name = "Customer2", Address = "Address2", Age = 30 },
new Customer { Id = 3, Name = "Customer3", Address = "Address3", Age = 40 },
new Customer { Id = 4, Name = "Customer4", Address = "Address4", Age = 40 },
new Customer { Id = 5, Name = "Customer5", Address = "Address5", Age = 50 }
public IEnumerable<Order> Orders = new List<Order>
new Order(1, 1, new Dictionary<int, int> { { 1, 2 }, { 2, 2 } }),
new Order(2, 2, new Dictionary<int, int> { { 3, 1 }, { 4, 2 }, { 5, 7 } }),
new Order(3, 3, new Dictionary<int, int> { { 5, 2 }, { 6, 4 } }),
new Order(4, 4, new Dictionary<int, int> { { 7, 2 }, { 8, 3 } }),
new Order(5, 5, new Dictionary<int, int> { { 9, 4 }, { 10, 5 } }),
new Order(6, 5, new Dictionary<int, int> { { 3, 2 }, { 7, 1 } })
public IEnumerable<Order> GetAllOrdersWithAmountMoreThan100()
var orders = new List<Order>();