Beispiel #1
0
        private static void ProductTest()
        {
            ProductManager productManager = new ProductManager(new EfProductDal(), new CategoryManager(new EfCategoryDal()));

            var result = productManager.GetProducDetails();

            if (result.Success == true)
            {
                foreach (var product in result.Data)
                {
                    Console.WriteLine(product.ProductName + " / " + product.CategoryName + " / " + product.UnitsInStock);
                }
            }
            else
            {
                Console.WriteLine(result.Message);
            }
        }