Beispiel #1
0
 public void BidTestInitialize()
 {
     Console.Out.Write("BidTestInitialize called...");
     _bidRepository = new BidRepository();
     _auctionRepository = new AuctionRepository();
     _userRepository = new UserRepository();
     _bid = new Bid();
 }
Beispiel #2
0
 public void DisableBid(Bid bid)
 {
     db.Bids.Add(bid).Active = false;
 }
Beispiel #3
0
 public void InsertBid(Bid bid)
 {
     db.Entry(bid.Auction).State = EntityState.Unchanged;
     db.Bids.Add(bid);
     db.SaveChanges();
 }
Beispiel #4
0
 public void DeleteBid(Bid bid)
 {
     db.Bids.Remove(bid);
     db.SaveChanges();
 }