예제 #1
0
        public void TestOffHoursShunt()
        {
            var     offHours = HoursFactory.GetHours(true);
            Auction auction  = CreateDefaultAuction();

            auction.OffHours = new OffHoursShunt();
            auction.OnStart();
            auction.Bid(CreateDefaultBidder(), 10000M, out Auction.BidStatus bidStatus);
            auction.OnClose();

            string expectedLog = CreateAuctionLog(auction);

            Assert.IsTrue(NotificationFactory.OffHoursLogger.FindMessage(expectedLog), "Expected auction log: " + expectedLog);
        }
예제 #2
0
 public AuctionManager() : this(HoursFactory.GetHours(false))
 {
 }