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(); }
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"); }); }
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"); }); }
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")); }); }
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")); }); }
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")); }