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() { 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() { 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() { 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 static Solution Empty() { var solution = new Solution(); solution.ClearFeeds(); return(solution); }
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() { 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 Solution ToSolution() { var solution = new Solution {Name = Name}; SourceFolderFlag.IfNotEmpty(x => solution.SourceFolder = x); NuspecFolderFlag.IfNotEmpty(x => solution.NugetSpecFolder = x); FeedsFlag.IfNotEmpty(x => { solution.ClearFeeds(); solution.AddFeeds(x.GetFeeds()); }); return solution; }
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 static Solution Empty() { var solution = new Solution(); solution.ClearFeeds(); return solution; }
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; }