public void CreateAuctionService_ShouldNotAccessAuctionVaidatorCurrency(string currency) { var auction = InstanceHelper.GetAuctionService(null); auction.Auction.Currency.Name = currency; Assert.ThrowsAny <Exception>(() => auction.Auction.Currency.ValidateObject()); }
public void EndAuctionTwoTimes_ShouldEndAuction() { AuctionService auction = InstanceHelper.GetAuctionService(null); auction.EndAuction(auction.Auction.PersonOfferor); Assert.True(auction.HadEnded); Assert.ThrowsAny <Exception>(() => auction.EndAuction(auction.Auction.PersonOfferor)); }
public void EndAuction_ShouldEndAuction() { AuctionService auction = InstanceHelper.GetAuctionService(null); auction.EndAuction(auction.Auction.PersonOfferor); Assert.True(auction.HadEnded); Assert.False(auction.IsActive); }
public void CreateAuctionService_ShouldHaveNotNullAuction() { var auction = InstanceHelper.GetAuctionService(null); Assert.NotNull(auction.Auction); }