public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("FubuTransportation", "0.9.0.0", UpdateMode.Float);
                    test.LocalDependency("FubuTransportation", "0.9.0.0");
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario
                .For(Feed.Fubu)
                .Add("FubuTransportation", "0.9.0.1")
                .ThrowWhenSearchingFor("FubuTransportation", "0.9.0.1", new InvalidOperationException("DNS error?"));

                scenario
                .For(Feed.NuGetV2)
                .Add("FubuTransportation", "0.9.0.1");
            });
        }
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Fixed);
                    test.ProjectDependency("Test", "TestNuGet");
                });
            });

            theFeedDef = new Feed("file://C:/nugets/{branch}");

            theSolution = theScenario.Find("Test");
            theSolution.AddFeed(theFeedDef);

            FeedScenario.Create(scenario =>
            {
                scenario.For("file://C:/nugets/develop")
                .Add("TestNuGet", "1.1.0.1");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>(x => x.BranchFlag = "develop");
        }
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("FubuTransportation", "0.9.0.0", UpdateMode.Float);
                    test.LocalDependency("FubuTransportation", "0.9.0.0");
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario
                .For(Feed.Fubu)
                .Add("FubuTransportation", "0.9.0.1")
                .ThrowWhenSearchingFor("FubuTransportation", "0.9.0.1", new InvalidOperationException("DNS error?"))
                .ConfigureRepository(fubu => fubu.ConfigurePackage("FubuTransportation", "0.9.0.1", x => x.DependsOn("FubuCore")));

                scenario
                .For(Feed.NuGetV2)
                .Add("FubuTransportation", "0.9.0.1")
                .Add("FubuCore", "1.1.0.0")
                .ConfigureRepository(nuget => nuget.ConfigurePackage("FubuTransportation", "0.9.0.1", x => x.DependsOn("FubuCore")));
            });
        }
        public void SetUp()
        {
            FeedScenario.Create(scenario => scenario.For(Feed.Fubu).Add("FubuCore", "1.0.0.1"));
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.NuGetV2)
                .Add("TopShelf", "1.1.0.0")
                .Add("log4net", "1.0.0.5")
                .Add("log4net", "1.0.1.1")
                .ConfigureRepository(nuget =>
                {
                    nuget.ConfigurePackage("TopShelf", "1.1.0.0", topshelf => topshelf.DependsOn("log4net"));
                });
            });

            theScenario = SolutionScenario.Create(scenario => scenario.Solution("Test"));
            theSolution = theScenario.Find("Test");

            theBuilder = new NugetPlanBuilder();

            var request = new NugetPlanRequest
            {
                Solution   = theSolution,
                Dependency = new Dependency("TopShelf", "1.1.0.0", UpdateMode.Fixed),
                Operation  = OperationType.Install,
                Project    = "Test"
            };

            thePlan = theBuilder.PlanFor(request);
        }
Ejemplo n.º 5
0
        public void SetUp()
        {
            theCacheFeed      = new Feed("file://cache");
            theFileSystemFeed = new Feed("file://feed", UpdateMode.Float);

            FeedScenario.Create(scenario =>
            {
                scenario.For(theCacheFeed)
                .Add("Dependency1", "1.0.0.0");

                scenario.For(theFileSystemFeed)
                .Add("Dependency1", "1.1.0.0");

                scenario.For(Feed.NuGetV2)
                .Add("Dependency1", "1.0.23.0");
            });

            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("Dependency1", "1.1.0.0", UpdateMode.Float);
                });
            });

            theSolution = theScenario.Find("Test");
            theSolution.ClearFeeds();
            theSolution.AddFeed(theFileSystemFeed);
            theSolution.AddFeed(Feed.NuGetV2);

            theSolution.UseCache(new InMemoryNugetCache(theCacheFeed));
        }
Ejemplo n.º 6
0
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("FubuTransportation", "0.9.0.1", UpdateMode.Float);
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario
                .For(Feed.Fubu)
                .Add("FubuTransportation", "0.9.0.1")
                .Add("FubuTransportation", "0.9.1.0");

                scenario
                .For(theSolution.Cache.ToFeed())
                .Add("FubuTransportation", "0.9.0.1");
            });



            RippleOperation
            .With(theSolution)
            .Execute <UpdateInput, UpdateCommand>(input =>
            {
                input.NugetFlag = "FubuTransportation";
            });
        }
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("Dovetail.SDK", "3.3.0.23", UpdateMode.Fixed);
                    test.ProjectDependency("Test", "Dovetail.SDK");
                    test.LocalDependency("Dovetail.SDK", "3.2.10.27");
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario
                .For(Feed.Fubu)
                .Add("Dovetail.SDK", "3.2.10.27")
                .Add("Dovetail.SDK", "3.3.0.23");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>();
        }
Ejemplo n.º 8
0
        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"));
        }
Ejemplo n.º 9
0
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("NServiceBus.WebSphereMQ", test =>
                {
                    test.SolutionDependency("NServiceBus.Interfaces", "4.0.0.0", UpdateMode.Float);
                });

                scenario.AddCachedNuget("NServiceBus.Interfaces", "4.0.0.0-unstable3041");
            });

            nServiceBus = new Feed("http://builds.nservicebus.com/guestAuth/app/nuget/v1/FeedService.svc", UpdateMode.Float, NugetStability.Anything);

            theSolution = theScenario.Find("NServiceBus.WebSphereMQ");
            theSolution.ClearFeeds();
            theSolution.AddFeed(nServiceBus);

            FeedScenario.Create(scenario =>
            {
                scenario.For(nServiceBus)
                .Add("NServiceBus.Interfaces", "4.0.0.0-beta0002");
            });

            NugetFolderCache.DisableValidation();
        }
Ejemplo n.º 10
0
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    // Defacto a float
                    test.ProjectDependency("Test", "Spark");
                });
            });

            theCache = new Feed("cache");

            theSolution = theScenario.Find("Test");
            theSolution.UseCache(new InMemoryNugetCache(theCache));

            FeedScenario.Create(scenario =>
            {
                scenario.For(theCache)
                .Add("Spark", "1.0.0.0");

                scenario.For(Feed.NuGetV2)
                .Add("Spark", "1.1.0.1");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>();
        }
Ejemplo n.º 11
0
        public void SetUp()
        {
            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float);
                    test.ProjectDependency("Test", "TestNuGet");
                });
            });

            theCache = new Feed("cache");

            theSolution = theScenario.Find("Test");
            theSolution.UseCache(new InMemoryNugetCache(theCache));

            FeedScenario.Create(scenario =>
            {
                scenario.For(theCache)
                .Add("TestNuGet", "1.1.0.1");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>();
        }
        public void SetUp()
        {
            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("Test", sln =>
                {
                    sln.LocalDependency("FubuCore", "1.1.0.0");

                    sln.ProjectDependency("Test1", "FubuCore");
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario.For(theSolution.Cache.ToFeed())
                .Add("FubuCore", "1.1.0.0")
                .Add("FubuCore", "1.2.0.0");

                scenario.Offline();
            });

            theBuilder = new NugetPlanBuilder();

            var request = new NugetPlanRequest
            {
                Solution     = theSolution,
                Dependency   = new Dependency("FubuCore"),
                Operation    = OperationType.Update,
                ForceUpdates = false
            };

            thePlan = theBuilder.PlanFor(request);
        }
        public void SetUp()
        {
            theSolution = new Solution();
            theSolution.ClearFeeds();

            theSolution.AddFeed(Feed.Fubu);
            theSolution.AddFeed(Feed.NuGetV2);

            theSolution.AddDependency(fubucore = new Dependency("FubuCore", "1.0.1.201"));

            var theProject = new Project("Test.csproj");

            theSolution.AddProject(theProject);

            theProject.AddDependency(bottles      = new Dependency("Bottles"));
            theProject.AddDependency(rhinomocks   = new Dependency("RhinoMocks", "3.6.1", UpdateMode.Fixed));
            theProject.AddDependency(structuremap = new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));

            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                .Add("Bottles", "1.0.2.2")
                .Add("FubuCore", "1.0.2.232")
                .Add("StructureMap", "2.6.4.71");

                scenario.For(Feed.NuGetV2)
                .Add("RhinoMocks", "3.6.1")
                .Add("StructureMap", "2.6.3");

                scenario.For(theSolution.Cache.ToFeed());

                scenario.Online();
            });
        }
        public void SetUp()
        {
            FeedScenario.Create(scenario => scenario.For(Feed.Fubu).Add("fubu", "1.2.0.0"));

            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("fubu", "1.0.0.1", UpdateMode.Fixed);
                    test.LocalDependency("fubu", "1.0.0.1");
                });
            });

            theSolution = theScenario.Find("Test");

            theBuilder = new NugetPlanBuilder();

            var request = new NugetPlanRequest
            {
                Solution     = theSolution,
                Dependency   = new Dependency("fubu"),
                Operation    = OperationType.Update,
                ForceUpdates = false
            };

            thePlan = theBuilder.PlanFor(request);
        }
Ejemplo n.º 15
0
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float);
                    test.ProjectDependency("Test", "TestNuGet");

                    test.LocalDependency("TestNuGet", "1.0.0.0");
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                .Add("TestNuGet", "1.1.0.1");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>();
        }
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario => scenario.Solution("Test"));

            theSolution = theScenario.Find("Test");

            var cache = theSolution.Cache.ToFeed();

            FeedScenario.Create(scenario =>
            {
                scenario.For(cache).Add("FubuCore", "1.0.0.1");
                scenario.Offline();
            });

            theBuilder = new NugetPlanBuilder();

            var request = new NugetPlanRequest
            {
                Solution   = theSolution,
                Dependency = new Dependency("FubuCore", "1.0.0.1", UpdateMode.Fixed),
                Operation  = OperationType.Install,
                Project    = "Test"
            };

            thePlan = theBuilder.PlanFor(request);
        }
Ejemplo n.º 17
0
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.NuGetV2)
                .Add("FubuCore", "1.2.0.0-alpha");
            });

            theScenario = SolutionScenario.Create(scenario => scenario.Solution("Test"));

            theSolution = theScenario.Find("Test");

            theBuilder = new NugetPlanBuilder();

            var request = new NugetPlanRequest
            {
                Solution   = theSolution,
                Dependency = new Dependency("FubuCore", "1.2.0.0", UpdateMode.Fixed)
                {
                    NugetStability = NugetStability.Anything
                },
                Operation = OperationType.Install,
                Project   = "Test"
            };

            thePlan = theBuilder.PlanFor(request);
        }
        public void SetUp()
        {
            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("StructureMap", "2.6.3", UpdateMode.Fixed);
                    test.ProjectDependency("Test", "structuremap");
                });
            });

            theSolution = theScenario.Find("Test");

            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                .Add("structuremap", "2.6.4.54");

                scenario.For(Feed.NuGetV2)
                .Add("structuremap", "2.6.3");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>();
        }
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                .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", fubumvc => { });
            });

            theSolution = theScenario.Find("Test");
        }
Ejemplo n.º 20
0
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.NuGetV2)
                .Add("FubuCore", "1.0.0.0")
                .Add("FubuCore.Docs", "1.0.0.0")
                .Add("log4net", "1.0.0.5")
                .Add("log4net", "1.0.1.1");

                scenario.For(Feed.Fubu)
                .Add("FubuCore", "1.0.0.100")
                .Add("FubuCore.Docs", "1.0.0.100")
                .Add("log4net", "1.0.0.5")
                .Add("log4net", "1.0.1.1");
            });

            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Bottles", bottles =>
                {
                    bottles.SolutionDependency("FubuCore", "1.0.0.0", UpdateMode.Fixed);
                });
            });

            theSolution = theScenario.Find("Bottles");
        }
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                .Add("Serenity", "1.1.0.0")
                .Add("Serenity", "1.2.0.0")
                .ConfigureRepository(fubu =>
                {
                    fubu.ConfigurePackage("Serenity", "1.1.0.0", serenity => serenity.DependsOn("WebDriver", "1.1.0.0"));
                    fubu.ConfigurePackage("Serenity", "1.2.0.0", serenity =>
                    {
                        serenity.DependsOn("WebDriver", "1.2.0.0");
                        serenity.DependsOn("Something");
                        serenity.DependsOn("SomethingElse", "0.9.9.9");
                    });
                });

                scenario.For(Feed.NuGetV2)
                .Add("Something", "1.0.0.5")
                .Add("SomethingElse", "0.9.9.9")
                .Add("WebDriver", "1.1.0.0")
                .Add("WebDriver", "1.2.0.0");
            });

            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", sln =>
                {
                    sln.SolutionDependency("WebDriver", "1.1.0.0", UpdateMode.Fixed);
                    sln.SolutionDependency("Serenity", "1.1.0.0", UpdateMode.Float);

                    sln.LocalDependency("Serenity", "1.1.0.0");

                    sln.ProjectDependency("Test1", "Serenity");
                    sln.ProjectDependency("Test1", "WebDriver");

                    sln.ProjectDependency("Test2", "Serenity");
                    sln.ProjectDependency("Test2", "WebDriver");
                });
            });

            theSolution = theScenario.Find("Test");

            theBuilder = new NugetPlanBuilder();

            var request = new NugetPlanRequest
            {
                Solution     = theSolution,
                Dependency   = new Dependency("Serenity"),
                Operation    = OperationType.Update,
                ForceUpdates = true
            };

            thePlan = theBuilder.PlanFor(request);
        }
Ejemplo n.º 22
0
        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>();
        }
Ejemplo n.º 23
0
        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"));
        }
Ejemplo n.º 24
0
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                .Add("Test", "1.1.0.0")
                .Add("Test", "1.2.0.0")
                .Add("Test", "1.2.0.12");
            });

            theSolution = Solution.Empty();
            theSolution.AddFeed(Feed.Fubu);
        }
Ejemplo n.º 25
0
        public void SetUp()
        {
            theUnavailableFeed  = new Feed("unavailable");
            anotherFloatingFeed = new Feed("floated");

            theScenario = SolutionScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.SolutionDependency("Bottles", "0.9.0.1", UpdateMode.Float);
                    test.SolutionDependency("FubuJson", "0.9.0.6", UpdateMode.Float);
                });
            });

            theSolution = theScenario.Find("Test");
            theSolution.ClearFeeds();

            theSolution.AddFeed(theUnavailableFeed);
            theSolution.AddFeed(Feed.Fubu);
            theSolution.AddFeed(anotherFloatingFeed);


            FeedScenario.Create(scenario =>
            {
                scenario
                .For(theSolution.Cache.ToFeed())
                .Add("Bottles", "0.8.0.123")
                .Add("FubuJson", "0.9.0.1");

                scenario
                .For(theUnavailableFeed)
                .ThrowWhenSearchingFor("FubuJson", new InvalidOperationException("DNS Error"));

                scenario
                .For(Feed.Fubu)
                .Add("Bottles", "0.9.0.1")
                .Add("FubuJson", "0.9.0.333");

                scenario
                .For(anotherFloatingFeed)
                .Add("Test", "1.0.0.0");

                scenario
                .For(Feed.NuGetV2)
                .Add("FubuTransportation", "0.9.0.1");
            });

            RippleOperation
            .With(theSolution)
            .Execute <RestoreInput, RestoreCommand>(x => x.VerboseFlag = true);
        }
Ejemplo n.º 26
0
        public void SetUp()
        {
            theFinder = new CacheFinder();
            theCache  = new Feed("cache");

            FeedScenario.Create(scenario =>
            {
                scenario.For(theCache)
                .Add("Test", "1.1.0.0");
            });

            theSolution = Solution.Empty();
            theSolution.UseCache(new InMemoryNugetCache(theCache));
        }
Ejemplo n.º 27
0
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.NuGetV2)
                .Add("FubuCore", "1.2.0.0-alpha");
            });

            theScenario = SolutionGraphScenario.Create(scenario => scenario.Solution("Test"));

            theSolution = theScenario.Find("Test");

            theBuilder = new NugetPlanBuilder();
        }
        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 = SolutionScenario.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("Serenity", "1.0.0.2")
                .Add("FubuCore", "1.0.0.1")
                .ConfigureRepository(teamcity =>
                {
                    teamcity.ConfigurePackage("Serenity", "1.0.0.2", serenity =>
                    {
                        serenity.DependsOn("WebDriver", "1.2.0.0");
                        serenity.DependsOn("Something");
                        serenity.DependsOn("SomethingElse", "0.9.9.9");
                    });
                });

                scenario.For(Feed.NuGetV2)
                .Add("WebDriver", "1.2.0.0")
                .Add("Something", "1.0.0.0")
                .Add("SomethingElse", "0.9.9.9");
            });

            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("Test", test =>
                {
                    test.LocalDependency("WebDriver", "1.1.0.0");

                    test.ProjectDependency("Test", "Serenity");
                    test.ProjectDependency("Test", "WebDriver");

                    test.ProjectDependency("Test2", "FubuCore");

                    test.SolutionDependency("WebDriver", "1.1.0.0", UpdateMode.Fixed);
                });
            });

            theSolution = theScenario.Find("Test");

            RippleOperation
            .With(theSolution)
            .Execute <UpdateInput, UpdateCommand>(input =>
            {
                input.NugetFlag = "Serenity";
                input.ForceFlag = true;
            });
        }
Ejemplo n.º 30
0
        public void SetUp()
        {
            theFilter = new EnsureLatestNuget();

            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.NuGetV2)
                .Add("Test", "1.1.0.0")
                .Add("Test", "1.2.0.0")
                .Add("Test", "1.2.0.12");
            });

            theSolution = Solution.Empty();
            theSolution.AddFeed(Feed.NuGetV2);
        }