File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change
1
+ using SimpleInventoryManagementSystem . Controller ;
2
+ using SimpleInventoryManagementSystem . DAO ;
3
+ using SimpleInventoryManagementSystem . Interfaces ;
4
+ using SimpleInventoryManagementSystem . Repository ;
5
+
6
+ namespace SimpleInventoryManagementSystem ;
7
+
8
+ public static class Configuration
9
+ {
10
+ public static IUserController BuildUserController ( )
11
+ {
12
+ return new UserController ( new ProductRepository ( new MemoryProductDao ( ) ) ) ;
13
+ }
14
+ }
Original file line number Diff line number Diff line change 1
- // See https://aka.ms/new-console-template for more information
1
+ using SimpleInventoryManagementSystem ;
2
2
3
- using SimpleInventoryManagementSystem . Controller ;
4
- using SimpleInventoryManagementSystem . DAO ;
5
- using SimpleInventoryManagementSystem . Repository ;
6
-
7
- var controller = new UserController ( new ProductRepository ( new MemoryProductDao ( ) ) ) ;
3
+ var controller = Configuration . BuildUserController ( ) ;
8
4
9
5
while ( true )
10
6
{
You can’t perform that action at this time.
0 commit comments