Beispiel #1
0
 public static void SnapshotShouldEqual(this Buyer buyer, BuyerState state, int currentPrice,
                                        int numberInStock, int boughtSoFar)
 {
     buyer.Snapshot.State.ShouldEqual(state);
     buyer.Snapshot.CurrentPrice.ShouldEqual(currentPrice);
     buyer.Snapshot.NumberInStock.ShouldEqual(numberInStock);
     buyer.Snapshot.BoughtSoFar.ShouldEqual(boughtSoFar);
 }
Beispiel #2
0
 public BuyerSnapshot(int currentPrice, int numberInStock,
                      int boughtSoFar, BuyerState state)
 {
     CurrentPrice  = currentPrice;
     NumberInStock = numberInStock;
     BoughtSoFar   = boughtSoFar;
     State         = state;
 }
Beispiel #3
0
 public BuyerSnapshot(string itemId, int currentPrice, int numberInStock,
                      int boughtSoFar, BuyerState state)
 {
     ItemId        = itemId;
     CurrentPrice  = currentPrice;
     NumberInStock = numberInStock;
     BoughtSoFar   = boughtSoFar;
     State         = state;
 }
Beispiel #4
0
 public BuyerStateEventArgs(BuyerState state)
 {
     State = state;
 }