public static void RunScenarios() { using (new SampleScenarioScope("Fulfillment")) { _cartId = Guid.NewGuid().ToString("B"); _cartLineId = Carts.AddCartLineWithVariant(_cartId); GetFulfillmentMethods(); GetCartFulfillmentOptions(); GetCartFulfillmentMethods(); GetCartLineFulfillmentOptions(); GetCartLineFulfillmentMethods(); Carts.DeleteCart(_cartId); } }
public static void RunScenarios() { var watch = new Stopwatch(); watch.Start(); Console.WriteLine("Begin Payments"); _cartId = Guid.NewGuid().ToString("B"); Carts.AddCartLineWithVariant(_cartId); GetCartPaymentOptions(); GetCartPaymentMethods(); Carts.DeleteCart(_cartId); watch.Stop(); Console.WriteLine($"End Payments :{watch.ElapsedMilliseconds} ms"); }