private static void ProductTest() { ProductManager productManager = new ProductManager(new EfProductDal(), new CategoryManager(new EfCategoryDal())); var result = productManager.GetProcutDetails(); if (result.Success) { foreach (var product in result.Data) { Console.WriteLine(product.ProductName + " / " + product.CategoryName); } } else { Console.WriteLine(result.Message); } }