Skip to content

Instantly share code, notes, and snippets.

@JamesBender
Last active December 25, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesBender/7044611 to your computer and use it in GitHub Desktop.
Save JamesBender/7044611 to your computer and use it in GitHub Desktop.
[Test]
public void WhenAValidCustomerPlacesAValidOrderAnOrderShouldBePlaced()
{
//Arrange
var shoppingCart = new ShoppingCart();
shoppingCart.Items.Add(new ShoppingCartItem { ItemId = Guid.NewGuid(), Quantity = 1 });
var customerId = Guid.NewGuid();
//Act
_orderService.PlaceOrder(customerId, shoppingCart);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment