예제 #1
0
        public GraphFixture()
        {
            string[] PackageSources = { "https://www.nuget.org/api/v2/" };
            List <IPackageRepository> PackageRepositories = new List <IPackageRepository>();

            foreach (var uri in PackageSources)
            {
                PackageRepositories.Add(PackageRepositoryFactory.Default.CreateRepository(uri));
            }
            var walker = new Walker(@"..\..\..\TestSolution\TestSolution.sln", PackageRepositories, false);

            walker.Load();
            Tree = walker.Walk();


            Graph = Grapher.GenerateDGML(Tree);
        }
예제 #2
0
        public OutputFixture()
        {
            string[] PackageSources = { "https://www.nuget.org/api/v2/" };
            List <IPackageRepository> PackageRepositories = new List <IPackageRepository>();

            foreach (var uri in PackageSources)
            {
                PackageRepositories.Add(PackageRepositoryFactory.Default.CreateRepository(uri));
            }
            var walker = new Walker(Path.GetFullPath(@"..\..\..\TestSolution\TestSolution.sln"), PackageRepositories, false);

            walker.Load();
            Tree = walker.Walk();


            SerializedTree = Printer.SerializeToJSON(Tree);
        }