private ShoppingCart CreateCartConstant() { var builder = TestOrderBuilder.BuildCart(); var order = builder.GetCart(); const string customerId = "3a6e29a3-d0c9-4a9b-8207-faf957015c60"; builder.WithAddresess() .WithShipmentCount(1, 123.23m) .WithShipmentDiscount(20.11m) .WithLineItemsConstant() .WithLineItemDiscounts(1, 5.65m) .WithOrderFormDiscounts(1, 50m) .WithCustomer(customerId); order.StoreId = "SampleStore"; return(order); }
private ShoppingCart CreateCart(int items = 2) { var builder = TestOrderBuilder.BuildCart(); var order = builder.GetCart(); const string customerId = "3a6e29a3-d0c9-4a9b-8207-faf957015c60"; builder.WithAddresess() .WithPayments() .WithShipment() .WithLineItemsCount(items) .WithStatus("InProgress") .WithCustomer(customerId) .WithOrderFormDiscounts(1) .WithLineItemDiscounts(2); order.StoreId = "SampleStore"; return(order); }