public void SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuMVC.Core", "1.0.0.0", UpdateMode.Float); test.ProjectDependency("Test", "FubuMVC.Core"); }); }); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.1.0.0") .Add("Bottles", "1.0.0.5") .Add("FubuMVC.Core", "1.0.0.0") .ConfigureRepository(fubu => { fubu.ConfigurePackage("FubuMVC.Core", "1.0.0.0", mvc => { mvc.DependsOn("FubuCore"); mvc.DependsOn("Bottles"); }); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <FixInput, FixCommand>(); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuCore", "1.2.0.0", UpdateMode.Float); test.SolutionDependency("UnneededAnywhereButHere", "1.2.0.0", UpdateMode.Float); test.ProjectDependency("Test1", "FubuCore"); test.ProjectDependency("Test1", "UnneededAnywhereButHere"); test.ProjectDependency("Test2", "FubuCore"); test.LocalDependency("FubuCore", "1.2.0.0"); test.LocalDependency("UnneededAnywhereButHere", "1.2.0.0"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "FubuCore", ProjectFlag = "Test1" }); RippleOperation .With(theSolution) .Execute <RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "UnneededAnywhereButHere", ProjectFlag = "Test1" }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void can_read_the_solution() { var solution = SolutionBuilder.ReadFrom(theSolutionDir); solution.FindProject("ProjectA").ShouldNotBeNull(); solution.FindProject("ProjectB").ShouldNotBeNull(); solution.FindProject("ProjectC").ShouldNotBeNull(); }
public Solution Find(string name) { var solution = SolutionBuilder.ReadFrom(_directory.AppendPath(name)); solution.UseCache(NugetFolderCache.For(_cacheDirectory, solution)); return(solution); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.NuGetV2) .Add("RavenDB.Client", "2.0.2330") .Add("RavenDB.Database", "2.0.2330") .Add("RavenDB.Embedded", "2.0.2330") .Add("RavenDB.Server", "2.0.2330") .ConfigureRepository(nuget => { nuget.ConfigurePackage("RavenDB.Embedded", "2.0.2330", embedded => { embedded.DependsOn("RavenDB.Client", "2.0.2330"); embedded.DependsOn("RavenDB.Database", "2.0.2330"); }); }); }); theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", sln => { sln.LocalDependency("RavenDB.Client", "2.0.2315"); sln.LocalDependency("RavenDB.Database", "2.0.2315"); sln.LocalDependency("RavenDB.Embedded", "2.0.2315"); sln.LocalDependency("RavenDB.Server", "2.0.2315"); sln.SolutionDependency("RavenDB.Client", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Database", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Embedded", "2.0.2315", UpdateMode.Fixed); sln.SolutionDependency("RavenDB.Server", "2.0.2315", UpdateMode.Fixed); sln.ProjectDependency("Test", "RavenDB.Client"); sln.ProjectDependency("Test", "RavenDB.Database"); sln.ProjectDependency("Test", "RavenDB.Embedded"); sln.ProjectDependency("Test", "RavenDB.Server"); sln.GroupDependencies("RavenDB.Client", "RavenDB.Database", "RavenDB.Embedded", "RavenDB.Server"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <UpdateInput, UpdateCommand>(input => { input.NugetFlag = "RavenDB.Client"; }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void installs_the_dependency() { RippleOperation .With(theSolution) .Execute <InstallInput, InstallCommand>(x => { x.Package = "FubuCore"; x.ProjectFlag = "Test"; }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); theSolution.FindProject("Test").Dependencies.Has("FubuCore").ShouldBeTrue(); }
public void SetUp() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Bottles", bottles => { bottles.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Fixed); }); }); theSolution = theScenario.Find("Bottles"); RippleOperation .With(theSolution) .Execute <FloatInput, FloatCommand>(new FloatInput { Name = "FubuCore" }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Bottles")); }