Esempio n. 1
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>();
        }
        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"));
            });
        }
Esempio n. 3
0
 public Task <NugetResult> Restore(Dependency dependency)
 {
     return(FeedService.NugetFor(dependency));
 }
Esempio n. 4
0
 public IRemoteNuget Restore(Dependency dependency)
 {
     return(FeedService.NugetFor(dependency));
 }