private void InvokeValidation(CheckoutConditionValidationContext context) { _workflowManager.TriggerEvent( ValidateCheckoutActivity.EventName, null, () => new Dictionary <string, object> { { "Context", context } }); }
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); }