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 static IReader GetReader(ISmartCardManufacture smartCard, string readerType) { return(smartCard?.GetReader(readerType)); }
public static ICard GetCard(ISmartCardManufacture smartCard, string cardType) { return(smartCard?.GetCard(cardType)); }