Example #1
0
        public void Add_Message_AddMessageHandlerJobToPipe()
        {
            // given
            var msg = new SeparateMessage();

            // when
            _sut.Add(msg);

            // then
            var constraint = new ParamConstraint <MessageHandlerExecutionJob <SeparateMessage> >();

            _execPipe.AssertWasCalled(x => x.Add(Arg <IJob> .Matches(constraint)));
        }
Example #2
0
        public void Add_Action_AddActionExecutionJobToPipe()
        {
            // given
            Action action = null;

            // when
            _sut.Add(action);

            // then
            var constraint = new ParamConstraint <ActionExecutionJob>();

            _execPipe.AssertWasCalled(x => x.Add(Arg <IJob> .Matches(constraint)));
        }