public async Task EnsureOrderCanOnlyBeVoidedWhenPaymentStatusIsAuthorizedAndPaymentModuleSupportsVoid()
        {
            var order = new Order
            {
                OrderTotal = 1,
                PaymentMethodSystemName = "Payments.TestMethod"
            };

            TestPaymentMethod.TestSupportVoid = true;

            foreach (OrderStatus os in Enum.GetValues(typeof(OrderStatus)))
            {
                foreach (PaymentStatus ps in Enum.GetValues(typeof(PaymentStatus)))
                {
                    foreach (ShippingStatus ss in Enum.GetValues(typeof(ShippingStatus)))
                    {
                        order.OrderStatus    = os;
                        order.PaymentStatus  = ps;
                        order.ShippingStatus = ss;

                        if (ps == PaymentStatus.Authorized)
                        {
                            var canVoid = await _orderProcessingService.CanVoidAsync(order);

                            canVoid.Should().BeTrue();
                        }
                        else
                        {
                            var canVoid = await _orderProcessingService.CanVoidAsync(order);

                            canVoid.Should().BeFalse();
                        }
                    }
                }
            }

            TestPaymentMethod.TestSupportVoid = false;

            foreach (OrderStatus os in Enum.GetValues(typeof(OrderStatus)))
            {
                foreach (PaymentStatus ps in Enum.GetValues(typeof(PaymentStatus)))
                {
                    foreach (ShippingStatus ss in Enum.GetValues(typeof(ShippingStatus)))
                    {
                        order.OrderStatus    = os;
                        order.PaymentStatus  = ps;
                        order.ShippingStatus = ss;

                        var canVoid = await _orderProcessingService.CanVoidAsync(order);

                        canVoid.Should().BeFalse();
                    }
                }
            }
        }