Exemple #1
0
        protected virtual ProtoExecutionResult.Builder ExecuteHooks(Message request)
        {
            var applicableTags  = GetApplicableTags(request);
            var applicableHooks = Strategy.GetApplicableHooks(applicableTags, GetHooks());

            return(MethodExecutor.ExecuteHooks(applicableHooks, GetExecutionInfo(request)));
        }
        protected virtual ProtoExecutionResult ExecuteHooks(Message request)
        {
            var applicableTags   = GetApplicableTags(request);
            var mapper           = new ExecutionInfoMapper();
            var executionContext = mapper.ExecutionInfoFrom(GetExecutionInfo(request));

            return(MethodExecutor.ExecuteHooks(HookType, Strategy, applicableTags, executionContext));
        }
        protected virtual ProtoExecutionResult ExecuteHooks(Message request)
        {
            var applicableTags   = GetApplicableTags(request);
            var mapper           = new ExecutionInfoMapper();
            var executionContext = mapper.ExecutionInfoFrom(GetExecutionInfo(request));
            var res = MethodExecutor.ExecuteHooks(HookType, Strategy, applicableTags, executionContext);
            var allPendingMessages    = MethodExecutor.GetAllPendingMessages().Where(m => m != null);
            var allPendingScreenshots = MethodExecutor.GetAllPendingScreenshots().Select(ByteString.CopyFrom);

            res.Message.AddRange(allPendingMessages);
            res.Screenshots.AddRange(allPendingScreenshots);
            return(res);
        }
Exemple #4
0
        protected virtual ProtoExecutionResult ExecuteHooks(Message request)
        {
            var applicableTags = GetApplicableTags(request);

            return(MethodExecutor.ExecuteHooks(HookType, Strategy, applicableTags));
        }