Esempio n. 1
0
 private void InvokeValidation(CheckoutConditionValidationContext context)
 {
     _workflowManager.TriggerEvent(
         ValidateCheckoutActivity.EventName,
         null,
         () => new Dictionary <string, object> {
         { "Context", context }
     });
 }
Esempio n. 2
0
        private CheckoutConditionValidationContext CreateContext(IUser user)
        {
            // Activities manipulating this context should get further
            // services they may need themselves, to avoid creating unnecessary
            // dependencies.
            var context = new CheckoutConditionValidationContext {
                User = user
            };

            return(context);
        }