Esempio n. 1
0
        public void ShouldNotDoubleBidIfHasNotPreviousBid()
        {
            Auction auction = new AuctionGenerator().To("Macbook Pro 15").Build();

            auction.DoubleBid(steveJobs);

            Assert.AreEqual(0, auction.Bids.Count);
        }
Esempio n. 2
0
        public void ShouldDoubleLastBidByUser()
        {
            Auction auction = new AuctionGenerator().To("Macbook Pro 15")
                              .Bid(steveJobs, 2000)
                              .Bid(billGates, 3000)
                              .Build();

            auction.DoubleBid(steveJobs);

            Assert.AreEqual(4000, auction.Bids[2].Value);
        }