Exemplo n.º 1
0
        public static SolutionGraph BuildForCurrentDirectory()
        {
            var builder = new SolutionGraphBuilder(new FileSystem());
            var codeDirectory = RippleFileSystem.FindCodeDirectory();

            return builder.ReadFrom(codeDirectory);
        }
Exemplo n.º 2
0
        public static SolutionGraph BuildForCurrentDirectory()
        {
            var builder       = new SolutionGraphBuilder(new FileSystem());
            var codeDirectory = RippleFileSystem.FindCodeDirectory();

            return(builder.ReadFrom(codeDirectory));
        }
        public void FixtureSetUp()
        {
            DataMother.CreateDataFolder();
            theBuilder = new SolutionGraphBuilder(new FileSystem());

            theGraph = theBuilder.ReadFrom("data");
        }
Exemplo n.º 4
0
        public SolutionGraphScenario(string directory)
        {
            _directory = directory;
            _fileSystem = new FileSystem();

            var builder = new SolutionGraphBuilder(_fileSystem);
            _graph = new Lazy<SolutionGraph>(() => builder.ReadFrom(_directory));
        }
Exemplo n.º 5
0
        public SolutionGraphScenario(string directory, string cacheDirectory)
        {
            _directory = directory;
            _cacheDirectory = cacheDirectory;
            _fileSystem = new FileSystem();

            var builder = new SolutionGraphBuilder(_fileSystem);
            _graph = new Lazy<SolutionGraph>(() => builder.ReadFrom(_directory));

            RippleFileSystem.StubCurrentDirectory(_directory);
        }
Exemplo n.º 6
0
 public void ResetGraph()
 {
     var builder = new SolutionGraphBuilder(_fileSystem);
     _graph = new Lazy<SolutionGraph>(() => builder.ReadFrom(_directory));
 }
        public void FixtureSetUp()
        {
            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("Bottles", bottles =>
                {
                    bottles.Publishes("Bottles", x => x.Assembly("Bottles.dll", "lib").DependsOn("FubuCore"));
                    bottles.ProjectDependency("Bottles", "FubuCore");
                });

                // Defaults to "FubuCore.dll" targeting "lib"
                scenario.Solution("FubuCore", fubucore => fubucore.Publishes("FubuCore"));

                scenario.Solution("FubuLocalization", localization =>
                {
                    localization.Publishes("FubuLocalization", x => x.Assembly("FubuLocalization.dll", "lib").DependsOn("FubuCore"));
                    localization.ProjectDependency("FubuLocalization", "FubuCore");
                });

                scenario.Solution("FubuMVC", fubumvc =>
                {
                    fubumvc.Publishes("FubuMVC.Core", x =>
                    {
                        x.Assembly("FubuMVC.Core.dll", "lib\\net40");
                        x.DependsOn("Bottles");
                        x.DependsOn("FubuCore");
                        x.DependsOn("FubuLocalization");
                        x.DependsOn("HtmlTags");
                    });

                    fubumvc.ProjectDependency("FubuMVC.Core", "Bottles");
                    fubumvc.ProjectDependency("FubuMVC.Core", "FubuCore");
                    fubumvc.ProjectDependency("FubuMVC.Core", "FubuLocalization");
                    fubumvc.ProjectDependency("FubuMVC.Core", "HtmlTags");
                });

                scenario.Solution("FubuMVC.Core.View", views =>
                {
                    views.Publishes("FubuMVC.Core.View", x => x.Assembly("FubuMVC.Core.View.dll", "lib\\net40").DependsOn("FubuMVC.Core"));

                    views.ProjectDependency("FubuMVC.Core.View", "Bottles");
                    views.ProjectDependency("FubuMVC.Core.View", "FubuCore");
                    views.ProjectDependency("FubuMVC.Core.View", "FubuLocalization");
                    views.ProjectDependency("FubuMVC.Core.View", "FubuMVC.Core");
                    views.ProjectDependency("FubuMVC.Core.View", "HtmlTags");
                });

                scenario.Solution("FubuMVC.Core.UI", ui =>
                {
                    ui.Publishes("FubuMVC.Core.UI", x => x.Assembly("FubuMVC.Core.UI.dll", "lib\\net40").DependsOn("FubuMVC.Core.View"));

                    ui.ProjectDependency("FubuMVC.Core.UI", "Bottles");
                    ui.ProjectDependency("FubuMVC.Core.UI", "FubuCore");
                    ui.ProjectDependency("FubuMVC.Core.UI", "FubuLocalization");
                    ui.ProjectDependency("FubuMVC.Core.UI", "FubuMVC.Core");
                    ui.ProjectDependency("FubuMVC.Core.UI", "FubuMVC.Core.View");
                    ui.ProjectDependency("FubuMVC.Core.UI", "HtmlTags");
                });

                scenario.Solution("HtmlTags", htmlTags => htmlTags.Publishes("HtmlTags", x => x.Assembly("HtmlTags.dll", "lib\\4.0")));
            });

            theBuilder = new SolutionGraphBuilder(new FileSystem());
        }
        public void SetUp()
        {
            DataMother.CreateDataFolder();
            var builder = new SolutionGraphBuilder(new FileSystem());
            var solution = builder.ReadFrom("data")["fubumvc"];

            theNugetService = new NugetService(solution);
        }