Ejemplo n.º 1
0
        public override bool SendNotifications(Auction auction)
        {
            if (OffHours == null)
            {
                return(false);
            }

            if (OffHours.IsOffHours())
            {
                AuctionLogger.Log(auction.Seller.UserName + "," + auction.HighestBidder.UserName + "," + auction.ItemDesc + "," +
                                  auction.CurrentPrice.ToString() + "," + auction.BuyerAmount.ToString() + "," + auction.SellerAmount.ToString());
            }
            return(true);
        }
Ejemplo n.º 2
0
 public LogCarSale(AuctionLogger auctionLogger)
 {
     this.AuctionLogger = auctionLogger;
 }
Ejemplo n.º 3
0
 public LogLargeSale(AuctionLogger auctionLogger)
 {
     this.AuctionLogger = auctionLogger;
 }
Ejemplo n.º 4
0
 public LogOffHours(AuctionLogger auctionLogger, Hours offHours)
 {
     AuctionLogger = auctionLogger;
     OffHours      = offHours;
 }