public void files_for_ripple_solution() { SolutionFiles .FromDirectory(theScenario.DirectoryForSolution("FubuCore")) .Mode .ShouldEqual(SolutionMode.Ripple); }
public void SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuCore", "1.2.0.0", UpdateMode.Float); test.SolutionDependency("FubuLocalization", "1.1.0.0", UpdateMode.Float); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test", "FubuLocalization"); test.LocalDependency("FubuCore", "1.2.0.0"); test.LocalDependency("FubuLocalization", "1.2.0.0"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute <RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "FubuCore" }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void throws_when_config_exists() { Exception <RippleFatalError> .ShouldBeThrownBy(() => { new InitCommand().Execute(new InitInput()); }).Message.ShouldEqual(InitCommand.ExistingSolution.ToFormat(theScenario.DirectoryForSolution("Test"))); }
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 = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("FubuCore", "1.2.0.0", UpdateMode.Float); test.SolutionDependency("FubuLocalization", "1.1.0.0", UpdateMode.Float); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test", "FubuLocalization"); test.LocalDependency("FubuCore", "1.2.0.0"); test.LocalDependency("FubuLocalization", "1.2.0.0"); }); }); theSolution = theScenario.Find("Test"); RippleOperation .With(theSolution) .Execute<RemoveInput, RemoveCommand>(new RemoveInput { Nuget = "FubuCore"}); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Test")); }
public void SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test"); }); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); }
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 = SolutionGraphScenario.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 SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed); test.ProjectDependency("Test", "structuremap"); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("structuremap", "2.6.4.54") .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); scenario.For(Feed.NuGetV2) .Add("structuremap", "2.6.3"); }); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution, resetSolution: true) .Execute <RestoreInput, RestoreCommand>(); }
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 = SolutionGraphScenario.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() { FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); }); theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution) .Execute <BatchInstallInput, BatchInstallCommand>(input => { input.FileFlag = theFile; }); }
public void SetUp() { FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); }); theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution) .Execute<BatchInstallInput, BatchInstallCommand>(input => { input.FileFlag = theFile; }); }
public void SetUp() { theScenario = SolutionGraphScenario.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", MinVersionFlag = "1.2.0.0" }); theSolution = SolutionBuilder.ReadFrom(theScenario.DirectoryForSolution("Bottles")); }
public void SetUp() { theScenario = SolutionGraphScenario.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")); }
public void SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed); test.ProjectDependency("Test", "structuremap"); test.ProjectDependency("Test", "FubuCore"); test.ProjectDependency("Test2", "FubuCore"); }); }); theSolution = theScenario.Find("Test"); FeedScenario.Create(scenario => { scenario.For(Feed.Fubu) .Add("structuremap", "2.6.4.54") .Add("FubuCore", "1.0.0.0") .Add("Bottles", "1.0.0.0") .Add("FubuMVC.Katana", "1.0.0.1") .Add("FubuMVC.Core", "1.0.1.1") .Add("FubuMVC.OwinHost", "1.2.0.0") .ConfigureRepository(teamcity => { teamcity.ConfigurePackage("FubuMVC.Katana", "1.0.0.1", katana => { katana.DependsOn("FubuMVC.Core"); katana.DependsOn("FubuMVC.OwinHost"); }); teamcity.ConfigurePackage("FubuMVC.OwinHost", "1.2.0.0", owin => owin.DependsOn("FubuMVC.Core")); }); scenario.For(Feed.NuGetV2) .Add("structuremap", "2.6.3"); }); RippleFileSystem.StubCurrentDirectory(theScenario.DirectoryForSolution("Test")); theFile = writeBatchInstructionsFile(writer => { writer.WriteLine("Bottles/1.0.0.0:Test,Test2"); writer.WriteLine("Test: FubuMVC.Katana"); writer.WriteLine("Test2: FubuMVC.Core"); }); RippleOperation .With(theSolution, resetSolution: true) .Execute<RestoreInput, RestoreCommand>(); }
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")); }