public static OrderEditDraft DefaultOrderEditDraft(OrderEditDraft orderEditDraft,
                                                           Order order)
        {
            var randomInt = TestingUtility.RandomInt();

            orderEditDraft.Key           = $"OrderEdit_{randomInt}";
            orderEditDraft.Resource      = order.ToReference();
            orderEditDraft.StagedActions = new List <IStagedOrderUpdateAction>();
            return(orderEditDraft);
        }
        public static OrderEditDraft DefaultOrderEditDraftWithStagedAction(OrderEditDraft draft,
                                                                           Order order)
        {
            var orderEditDraft = DefaultOrderEditDraft(draft, order);

            orderEditDraft.StagedActions.Add(
                new SetCustomerEmailUpdateAction
            {
                Email = "*****@*****.**"
            });
            return(orderEditDraft);
        }