Exemplo n.º 1
0
 public static void Main(string[] args)
 {
     string path = @"C:\Users\ybrad\OneDrive\Desktop\IT 514\AdapterPatternDemo\Products1.csv";
     FileGateway aGateway = new FileGateway();
     NewFileGateWay newGateWay = new NewFileGateWay(aGateway);
     newGateWay.GetProducts(path);
     ProductCatalog aCatalog = new ProductCatalog();
     aCatalog.Print(newGateWay);
 }
Exemplo n.º 2
0
 public NewFileGateWay(FileGateway oldFileGateWay)
 {
     this.lastGateWay = oldFileGateWay;
 }