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();
            });
        }
예제 #2
0
        public void SetUp()
        {
            theCacheFeed = new Feed("file://cache");
            theFileSystemFeed = new Feed("file://feed");

            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 = SolutionGraphScenario.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));
        }
        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));

            theFubuFeed = MockRepository.GenerateStub<IFloatingFeed>();
            theFubuFeed.Stub(x => x.GetLatest()).Return(new IRemoteNuget[]
            {
                new StubNuget("Bottles", "1.0.2.2"),
                new StubNuget("FubuCore", "1.0.2.232"),
                new StubNuget("StructureMap", "2.6.4.71"),
            });

            theNugetFeed = MockRepository.GenerateStub<INugetFeed>();
            theNugetFeed.Stub(x => x.Find(rhinomocks)).Return(new StubNuget("RhinoMocks", "3.6.1"));
            theNugetFeed.Stub(x => x.Find(structuremap)).Return(new StubNuget("StructureMap", "2.6.3"));

            theFeedProvider = MockRepository.GenerateStub<IFeedProvider>();
            theFeedProvider.Stub(x => x.For(Feed.Fubu)).Return(theFubuFeed);
            theFeedProvider.Stub(x => x.For(Feed.NuGetV2)).Return(theNugetFeed);

            FeedRegistry.Stub(theFeedProvider);
        }
        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);
        }
        public void SetUp()
        {
            theScenario = SolutionGraphScenario.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();
        }
        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");
        }
예제 #7
0
        public void SetUp()
        {
            FeedScenario.Create(scenario =>
            {
                scenario.For(Feed.Fubu)
                    .Add("FubuCore", "1.1.0.0")
                    .ThrowWhenSearchingFor("Bottles", "1.0.0.0", UpdateMode.Float, new NotImplementedException());

                scenario.For(Feed.NuGetV2)
                        .Add("Bottles", "1.0.0.0");
            });

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

            theFeedService = theSolution.FeedService.As<FeedService>();
        }
예제 #8
0
        public static Solution NuGet(string name, string directory = null)
        {
            var solution = new Solution {
                Name = name
            };

            solution.ClearFeeds();
            solution.AddFeed(Feed.NuGetV2);
            solution.Directory = directory;

            return(solution);
        }
        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);
        }
예제 #10
0
        public void SetUp()
        {
            theFinder = new DefaultFinder();

            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);
        }
        public void SetUp()
        {
            theFinder = new NoMaxVersionSpecFinder();

            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);
        }
예제 #12
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);
        }
예제 #13
0
        public void SetUp()
        {
            theSolution = Solution.Empty();
            
            theCacheFeed = new Feed("cache");
            theFeed = new Feed("test");

            theSolution.AddFeed(theFeed);
            theSolution.UseCache(new InMemoryNugetCache(theCacheFeed));

            FeedScenario.Create(scenario =>
            {
                scenario.For(theFeed);
                scenario.For(theCacheFeed);
            });

            theConnectivity = new FeedConnectivity();
        }
        public void SetUp()
        {
            theStorage = new StubNugetStorage();
            theStorage.Add("FubuCore", "1.0.0.0");
            theStorage.Add("Bottles", "1.0.0.0");
            theStorage.Add("StructureMap", "2.6.3");

            theSolution = Solution.Empty();
            theSolution.AddDependency(new Dependency("FubuCore", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("FubuLocalization", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));
            theSolution.AddFeed(Feed.Fubu);
            theSolution.UseStorage(theStorage);

            FeedScenario.Create(scenario =>
            {
                scenario
                    .For(Feed.Fubu)
                    .Add("StructureMap", "2.6.4.54");
            });
        }
예제 #15
0
        public void SetUp()
        {
            theScenario = SolutionGraphScenario.Create(scenario =>
            {
                scenario.Solution("FubuMVC", fubumvc =>
                {
                    fubumvc.ProjectDependency("FubuMVC.Core", "FubuCore");
                    fubumvc.ProjectDependency("FubuMVC.Core", "Bottles");
                });
            });

            theSolution = theScenario.Find("FubuMVC");
            theSolution.ClearFeeds();
            theSolution.AddFeed(new Feed("http://local"));

            FeedScenario.Create(scenario =>
            {
                scenario.For("http://local")
                    .Add("FubuCore", "1.0.0.1")
                    .Add("Bottles", "1.0.0.0");
            });
        }
        public void SetUp()
        {
            theFeed = new Feed("testing");
            theStorage = new StubNugetStorage();

            theSolution = new Solution();
            theSolution.UseStorage(theStorage);
            theSolution.AddFeed(theFeed);
            theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("FubuCore"));
            theSolution.AddDependency(new Dependency("StructureMap", "2.6.3", UpdateMode.Fixed));

            theFeedService = theSolution.FeedService.As<FeedService>();

            FeedScenario.Create(scenario =>
            {
                scenario.For(theFeed)
                        .Add(new Dependency("Bottles", "1.0.0.0"))
                        .Add(new Dependency("Bottles", "1.0.1.0"))
                        .Add(new Dependency("FubuCore", "1.2.0.0"))
                        .Add(new Dependency("StructureMap", "2.6.4.54"));
            });
        }
예제 #17
0
        public static Solution NuGet(string name, string directory = null)
        {
            var solution = new Solution { Name = name };

            solution.ClearFeeds();
            solution.AddFeed(Feed.NuGetV2);
            solution.Directory = directory;

            return solution;
        }
        public void SetUp()
        {
            theStorage = new StubNugetStorage();
            theStorage.Add("FubuCore", "1.0.0.0");
            theStorage.Add("Bottles", "1.0.0.0");
            theStorage.Add("FubuLocalization", "1.0.0.0");

            theSolution = new Solution();
            theSolution.AddDependency(new Dependency("FubuCore", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("Bottles", "1.0.0.0"));
            theSolution.AddDependency(new Dependency("FubuLocalization", "1.0.0.0"));
            theSolution.AddFeed(new Feed("local"));
            theSolution.UseStorage(theStorage);

            FeedScenario.Create(scenario =>
            {
                scenario.For(new Feed("local"))
                    .Add("FubuCore", "1.0.0.1")
                    .Add("Bottles", "1.0.0.0");
            });
        }