Example #1
0
 public IEnumerable <ValidationFail> Validate(ProcessModel model) => model.Elements
 .OfType <INamedProcessElement <IElement> >()
 .Where(s => (
            s.Element is Activity ||
            s.Element is IEventCatcher
            ))
 .Where(s => !model.GetOutcomingConnections(s.Name).Any())
 .Select(s => new ValidationFail($"'{s.Name}' has no outgoing connections."));