public void ProcessVertex(GraphvizVertex formatter, Project project)
 {
     if (IsModelProject(project))
     {
         formatter.StrokeColor = Color.DeepSkyBlue;
         formatter.Subgraph = "Model";
     }
 }
 public void ProcessEdge(GraphvizEdge formatter, Project sourceProject, Project targetProject)
 {
     if(IsModelProject(targetProject))
     {
         formatter.Style = GraphvizEdgeStyle.Bold;
         formatter.StrokeColor = Color.DeepSkyBlue;
     }
 }
        public void Setup()
        {
            eventArgs = null;

            project = new Project("project", Guid.Empty);
            project.PropertyChanged += project_PropertyChanged;
            project.IsSelected = !project.IsSelected;
        }
        public void Setup()
        {
            var projectLoader = Helper.GetMockProjectLoader(projectIdentifier, projectReference);

            project = new Project(projectLoader);
        }
 private bool IsModelProject(Project project)
 {
     var containsNHibernateAssemblies = project.ReferencedDlls.Any(rf => rf.Name.Contains("NHibernate"));
     var containsTestAssemblies = project.ReferencedDlls.Any(rf => rf.Name.Contains("nunit"));
     return containsNHibernateAssemblies && !containsTestAssemblies;
 }