public static bool OnlyDependsOn(this IHasDependencies c, string pattern, bool useRegularExpressions = false) { return(c.GetTypeDependencies().All(d => d.FullNameMatches(pattern, useRegularExpressions))); }
public static IEnumerable <Interface> GetInterfaceDependencies(this IHasDependencies c, Architecture architecture) { return(c.GetTypeDependencies(architecture).OfType <Interface>()); }
public static IEnumerable <Interface> GetInterfaceDependencies(this IHasDependencies c) { return(c.GetTypeDependencies().OfType <Interface>()); }
public static IEnumerable <Class> GetClassDependencies(this IHasDependencies c, Architecture architecture) { return(c.GetTypeDependencies(architecture).OfType <Class>()); }
public static IEnumerable <Class> GetClassDependencies(this IHasDependencies c) { return(c.GetTypeDependencies().OfType <Class>()); }
public static bool DependsOn(this IHasDependencies c, IType type) { return(c.GetTypeDependencies().Contains(type)); }