/*using HardwareShopClientApp; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllersWithViews(); var app = builder.Build(); APIClient.Connect(builder.Configuration); // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Home/Error"); // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthorization(); app.MapControllerRoute( name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); app.Run(); */ using HardwareShopBusinessLogic.BusinessLogics.Storekeeper; using HardwareShopDatabaseImplement.Implements.Storekeeper; using HardwareShopDatabaseImplement.Implements.Worker; ComponentStorage _componentStorage = new(); GoodStorage _goodStorage = new(); PurchaseStorage _purchaseStorage = new(); BuildStorage _buildStorage = new(); ReportStorekeeperLogic reportLogic = new(_componentStorage, _goodStorage, _purchaseStorage, _buildStorage); var goods = _goodStorage.GetFilteredList(new() { UserId = 1 }); var reportRecords = reportLogic.GetBuildGood(goods); Console.WriteLine("start"); foreach (var reportRecord in reportRecords) { Console.WriteLine("good: " + reportRecord.GoodName); Console.WriteLine("> builds:"); for (int i = 0; i < reportRecord.Builds.Count; i++) { Console.WriteLine(i + 1 + ". " + reportRecord.Builds[i]); } Console.WriteLine(); }