public ShopService() { DatabaseDriver = new DatabaseDriver(); logger = new Logger(); Supplier1 = new Supplier1(); Supplier2 = new Supplier2(); Supplier3 = new Supplier3(); }
public ShopService() { DatabaseDriver = new DatabaseDriver(); logger = new ConsoleLogger(); _suppliers = new List <ISupplier>(); _suppliers.Add(new Supplier1()); _suppliers.Add(new Supplier2()); _suppliers.Add(new Supplier3()); }
public ShopService() { _databaseDriver = new DatabaseDriver(); _logger = new Logger(); _suppliers = new List <ISupplier>() { new Supplier1(), new Supplier2(), new Supplier3() }; }
public ShopService() { DatabaseDriver = new DatabaseDriver(); logger = new Logger(); _suppliers = new List <Supplier>(); Supplier1 = new Supplier(1, "Article from supplier1", 458); _suppliers.Add(Supplier1); Supplier2 = new Supplier(1, "Article from supplier2", 459); _suppliers.Add(Supplier2); Supplier3 = new Supplier(1, "Article from supplier3", 460); _suppliers.Add(Supplier3); }
public ShopService() { DatabaseDriver = new DatabaseDriver(); logger = new Logger(); Supplier1 = new SupplierHandler(new Supplier1()); Supplier2 = new SupplierHandler(new Supplier2()); Supplier3 = new SupplierHandler(new Supplier3()); Supplier3.RegisterNext(Supplier2); Supplier2.RegisterNext(Supplier1); }
public ShopService(List <Supplier> suppliers) { DatabaseDriver = new DatabaseDriver(); logger = new Logger(); _suppliers = suppliers; }
public ShopService() { DatabaseDriver = new DatabaseDriver(); }
public ShopService() { databaseDriver = new DatabaseDriver(); logger = new Logger(); }