Created
September 5, 2013 17:38
-
-
Save gregoryyoung/6453472 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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