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