public static SolutionGraph BuildForCurrentDirectory() { var builder = new SolutionGraphBuilder(new FileSystem()); var codeDirectory = RippleFileSystem.FindCodeDirectory(); return builder.ReadFrom(codeDirectory); }
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"); }
public SolutionGraphScenario(string directory) { _directory = directory; _fileSystem = new FileSystem(); var builder = new SolutionGraphBuilder(_fileSystem); _graph = new Lazy<SolutionGraph>(() => builder.ReadFrom(_directory)); }
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); }
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); }