Skip to content

Instantly share code, notes, and snippets.

@Hameds
Created November 2, 2017 10:31
Show Gist options
  • Save Hameds/53af128f910502dd5aff1ccc60426f6d to your computer and use it in GitHub Desktop.
Save Hameds/53af128f910502dd5aff1ccc60426f6d 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