private void OutputNamespaceMetricsReport(NamespaceMetricsReport namespaceMetrics) { OutputSeperator(); Output(String.Format("Name:\t\t{0}", namespaceMetrics.Name)); Output(String.Format("NumberOfNamespacesInCycle:\t{0}", namespaceMetrics.NumberOfNamespacesInCycle)); Output(); }
public static IEnumerable<TypeMetricsReport> TypesOfNamespace(this MetricsReport metrics, NamespaceMetricsReport namespaceMetrics) { return metrics.TypesOf(namespaceMetrics); }
private IEnumerable<OutOfNamespaceReference> ReferencesOutOf(NamespaceMetricsReport currentNamespace, IEnumerable<NamespaceMetricsReport> to) { return from typeReferences in AllTypesWithReferencesIn(currentNamespace) from crossReference in typeReferences.Referencing(to) select crossReference; }
private IEnumerable<OutgoingTypeReferences> AllTypesWithReferencesIn(NamespaceMetricsReport currentNamespace) { return from type in metrics.TypesOfNamespace(currentNamespace) select new OutgoingTypeReferences(metrics, type); }
public static IEnumerable <TypeMetricsReport> TypesOfNamespace(this MetricsReport metrics, NamespaceMetricsReport namespaceMetrics) { return(metrics.TypesOf(namespaceMetrics)); }
public HotspotNamespaceInCycle(NamespaceMetricsReport namespaceReport, MetricsReport metrics) : base(namespaceReport, metrics) { }
internal IEnumerable<TypeMetricsReport> TypesOf(NamespaceMetricsReport namespaceMetrics) { return namespaceReports[namespaceMetrics.Name].Types; }
internal IEnumerable <TypeMetricsReport> TypesOf(NamespaceMetricsReport namespaceMetrics) { return(namespaceReports[namespaceMetrics.Name].Types); }
public static bool NumberOfNamespacesInCycle(int nonic) { var metrics = new NamespaceMetricsReport { CyclicDependencies = Create.Default<string>(nonic) }; metrics.CommonKnowledge = new CommonReportKnowledge(0, 0, 1, 0); return metrics.Rate().IsInCycle; }