コード例 #1
0
        public void continues_to_next_feed_when_finding_latest_and_an_exception_occurs()
        {
            var storage = new StubNugetStorage();
            storage.Add("Bottles", "0.9.9.9");

            theSolution.UseStorage(storage);

            theFeedService.LatestFor(theSolution, new Dependency("Bottles", "1.0.0.0")).ShouldNotBeNull();
        }
コード例 #2
0
        public void continues_to_next_feed_when_finding_latest_and_an_exception_occurs()
        {
            var storage = new StubNugetStorage();

            storage.Add("Bottles", "0.9.9.9");

            theSolution.UseStorage(storage);

            theFeedService.LatestFor(theSolution, new Dependency("Bottles", "1.0.0.0")).ShouldNotBeNull();
        }
コード例 #3
0
        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");
            });
        }
コード例 #4
0
        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");
            });
        }
コード例 #5
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"));
            });
        }
コード例 #6
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"));
            });
        }
コード例 #7
0
        public void get_nuget_directory()
        {
            var solution = new Solution
            {
                SourceFolder = "source",
                Directory    = ".".ToFullPath()
            };

            var storage = new StubNugetStorage();

            storage.Add("FubuCore", "0.9.1.37");
            solution.UseStorage(storage);

            var project    = new Project("something.csproj");
            var dependency = new Dependency("FubuCore", "0.9.1.37");

            project.AddDependency(dependency);
            solution.AddProject(project);

            var spec = new NugetSpec("FubuCore", "somefile.nuspec");

            solution.NugetFolderFor(spec)
            .ShouldEqual(".".ToFullPath().AppendPath(solution.PackagesDirectory(), "FubuCore"));
        }
コード例 #8
0
ファイル: SolutionTester.cs プロジェクト: modulexcite/ripple
        public void get_nuget_directory()
        {
            var solution = new Solution
            {
                SourceFolder = "source",
                Directory = ".".ToFullPath()
            };

            var storage = new StubNugetStorage();
            storage.Add("FubuCore", "0.9.1.37");
            solution.UseStorage(storage);

            var project = new Project("something.csproj");
            var dependency = new Dependency("FubuCore", "0.9.1.37");
            project.AddDependency(dependency);
            solution.AddProject(project);

            var spec = new NugetSpec("FubuCore", "somefile.nuspec");

            solution.NugetFolderFor(spec)
                .ShouldEqual(".".ToFullPath().AppendPath(solution.PackagesDirectory(), "FubuCore"));

        }