-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
36 lines (32 loc) · 972 Bytes
/
Copy pathProgram.cs
File metadata and controls
36 lines (32 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using Business.Concrete;
using DataAccess.Concrete.EntityFramework;
using DataAccess.Concrete.InMemory;
using System;
namespace ConsoleUI
{
class Program
{
static void Main(string[] args)
{
//DTO: Data Transformation Object
ProductTest();
//CategoryTest();
}
private static void CategoryTest()
{
CategoryManager categoryManager = new CategoryManager(new EfCategoryDal());
foreach (var category in categoryManager.GetAll())
{
Console.WriteLine(category.CategoryName);
}
}
private static void ProductTest()
{
ProductManager productManager = new ProductManager(new EfProductDal());
foreach (var product in productManager.GetProductDetails())
{
Console.WriteLine(product.ProductName + "/" + product.CategoryName);
}
}
}
}