Exemple #1
0
            public override bool Pre(PipelineMutationModel _arg1)
            {
                var outcome = _arg1.PredictedOutcome(Event);

                return(_arg1.Length > 2 && base.Pre(_arg1) && outcome.Any());
                // need to have at least 1 handler who can take the event
            }
Exemple #2
0
            public override Property Check(IChannelPipeline obj0, PipelineMutationModel obj1)
            {
                var model  = obj1.PredictedOutcome(Event);
                var actual = Execute(obj0);

                return
                    (model.SequenceEqual(actual)
                     .Label(
                         $"Expected model ({string.Join(",", model)}) to equal actual ({string.Join(",", actual)})"));
            }