예제 #1
0
 public CreditCardEventArgs(Guid instanceId, BuyerInfo buyer, decimal price, string trackingNumber)
     : base(instanceId)
 {
     this.Buyer = buyer;
     this.Price = price;
     this.TrackingNumber = trackingNumber;
 }
예제 #2
0
        public void Index()
        {
            PropertyBag["buyertype"] = typeof (BuyerInfo);

            BuyerInfo defaultBuyer = new BuyerInfo();
            defaultBuyer.Name = "Louis DeJardin";
            defaultBuyer.Card = "abcdefg";
            defaultBuyer.ExpiresYear = 2018;
            defaultBuyer.ExpiresMonth = 12;

            PropertyBag["buyer"] = defaultBuyer;
            PropertyBag["price"] = 23.95;
        }