Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created September 5, 2013 17:38
Show Gist options
  • Save gregoryyoung/6453472 to your computer and use it in GitHub Desktop.
Save gregoryyoung/6453472 to your computer and use it in GitHub Desktop.
public void deactivating_an_inventory_item() {
Given(() => {
yield return new InvntoryItemCreated(12);
})
When(new DeactivateInventoryItem(12, "foo"));
Expect(new InventoryItemDeactivated(12, "foo"));
}
public void deactivating_a_deactivated_inventory_item() {
Given(() => {
yield return new InvntoryItemCreated(12);
yield return new InventoryItemDeactivated(12, "blah");
})
When(new DeactivateInventoryItem(12, "foo"));
ExpectException<InventoryItemAlreadyDeactivated>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment