Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public void WhenUserPlacesACorrectOrderThenAnOrderNumberShouldBeReturned()
var shoppingCart = new ShoppingCart();
shoppingCart.Items.Add(new ShoppingCartItem { ItemId = Guid.NewGuid(), Quantity = 1 });
var customerId = Guid.NewGuid();
var expectedOrderId = Guid.NewGuid();
var orderService = new OrderService();
var result = orderService.PlaceOrder(customerId, shoppingCart);
Assert.AreEqual(expectedOrderId, result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment