using System; using System.Collections.Generic; using System.Linq; namespace BoundaryLab.Domain; public static class DependencyRule { public static bool Allowed(string from, string to) => from switch { "Domain" => false, "Application" => to == "Domain", "Infrastructure" => to == "Domain" || to == "Application", "Host" => to == "Domain" || to == "Application" || to == "Infrastructure", _ => false }; }