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); }
public BuyerSnapshot(int currentPrice, int numberInStock, int boughtSoFar, BuyerState state) { CurrentPrice = currentPrice; NumberInStock = numberInStock; BoughtSoFar = boughtSoFar; State = state; }
public BuyerSnapshot(string itemId, int currentPrice, int numberInStock, int boughtSoFar, BuyerState state) { ItemId = itemId; CurrentPrice = currentPrice; NumberInStock = numberInStock; BoughtSoFar = boughtSoFar; State = state; }
public BuyerStateEventArgs(BuyerState state) { State = state; }