Advertisement
riccardocagnasso

Untitled

Jan 16th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1.         [Test]
  2.         [ExpectedException(typeof (ConcurrentChangeException))]
  3.         public void ConcurrentAuctionEdit()
  4.         {
  5.             var site1 = this.SiteFactory.LoadSite(this.GetConnectionString(), "SITO1", this.AlarmClock);
  6.             var session2 = site1.Login("User2", "Pass2");
  7.  
  8.             var auction1 = site1.GetAuctions(false).First();
  9.             var auction2 = site1.GetAuctions(false).First();
  10.  
  11.             auction1.BidOnAuction(session2, 1000);
  12.             auction2.BidOnAuction(session2, 1000);
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement