public GraphLinkManager(string context)
        {
            _graph = new SitecoreGraph();

            var computedLinkItems = new List<IComputedLinkItem>();

            computedLinkItems.Add(new AncestorComputedLinkItem("team", "ground"));
            computedLinkItems.Add(new DescendantComputedLinkItem("staff", "team"));

            _computedLinkManager = new SitecoreComputedLinkManager(computedLinkItems);

            List<BaseRelationship> relationships = new List<BaseRelationship>();

            relationships.Add(new SitecoreTemplateRelationship() { SubjectTemplateName = "league", Name = "league_to_team", ObjectTemplateName = "team" });
            relationships.Add(new SitecoreTemplateRelationship() { SubjectTemplateName = "team", Name = "team_to_player", ObjectTemplateName = "player" });
            relationships.Add(new SitecoreTemplateRelationship() { SubjectTemplateName = "newsstory", Name = "news_to_item", ObjectTemplateName = "*" });
            relationships.Add(new SitecoreTemplateRelationship() { SubjectTemplateName = "ground", Name = "home_of_team", ObjectTemplateName = "team" });
            relationships.Add(new SitecoreTemplateRelationship() { SubjectTemplateName = "team", Name = "team_staff", ObjectTemplateName = "staff" });
            
            IRelationshipProvider relationshipProvider = new RelationshipProvider(relationships);

            _relationshipManager = new RelationshipManager(relationshipProvider);

            Context = context;
        }
 public SitecoreLinkDatabase(string connectionString)
 {
     _factory             = DependencyResolver.Instance.Resolve <SitecoreManagerFactory>();
     _computedLinkManager = DependencyResolver.Instance.Resolve <IComputedLinkManager>();
 }