public static ISmartCardManufacture GetSmartCardFactory(string vendorName) { ISmartCardManufacture smartCard = null; switch (vendorName) { case "A": smartCard = new VendorA(); break; case "B": smartCard = new VendorB(); break; } return(smartCard); }
public WeatherStationSensors(VendorA vendorA) { _vendorA = vendorA; }