Ejemplo n.º 1
0
 public static SingletonOrder GetInstance()
 {
     if (Instance == null)
     {
         Instance = new SingletonOrder();
     }
     return(Instance);
 }
Ejemplo n.º 2
0
 public PaymentDetails(string cardNumber, string cardName, string securityNumber, string expiryMonth, string expiryYear)
 {
     CardNumber      = cardNumber;
     CardName        = cardName;
     SecurityNumber  = securityNumber;
     ExpiryMonth     = expiryMonth;
     ExpiryYear      = expiryYear;
     _singletonOrder = SingletonOrder.GetInstance();
 }