public void Cannot_Check_Out_If_Cart_Is_Empty() { var emptyCart = new Cart(); var shippingDetails = new ShippingDetails(); var result = new CartController(null, null).CheckOut(emptyCart, shippingDetails); result.ShouldBeDefaultView(); }
public void Cannot_Check_Out_If_Cart_Is_Empty() { // Arrange/act: When a user tries to check out with an empty cart var emptyCart = new Cart(); var shippingDetails = new ShippingDetails(); var result = new CartController(null, null).CheckOut(emptyCart, shippingDetails); // Assert result.ShouldBeDefaultView(); }