using System; using System.Collections.Generic; using System.Linq; using BoundaryLab.Domain; namespace BoundaryLab.Application; public static class DependencyAudit { public static int CountInvalid(IEnumerable<(string From, string To)> edges) => edges.Count(edge => !DependencyRule.Allowed(edge.From, edge.To)); }