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() { theScenario = SolutionScenario.Create(scenario => { scenario.Solution("Test", test => { // Defacto a float test.ProjectDependency("Test", "Spark"); }); }); theCache = new Feed("cache"); theSolution = theScenario.Find("Test"); theSolution.UseCache(new InMemoryNugetCache(theCache)); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("Spark", "1.0.0.0"); scenario.For(Feed.NuGetV2) .Add("Spark", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void SetUp() { theScenario = SolutionGraphScenario.Create(scenario => { scenario.Solution("Test", test => { test.SolutionDependency("TestNuGet", "1.1.0.1", UpdateMode.Float); test.ProjectDependency("Test", "TestNuGet"); }); }); theCache = new Feed("cache"); theSolution = theScenario.Find("Test"); theSolution.UseCache(new InMemoryNugetCache(theCache)); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("TestNuGet", "1.1.0.1"); }); RippleOperation .With(theSolution) .Execute<RestoreInput, RestoreCommand>(); }
public void Apply(Solution solution) { RippleLog.Verbose(VerboseFlag); if (CacheFlag.IsNotEmpty()) { solution.UseCache(new NugetFolderCache(solution, CacheFlag.ToFullPath())); } ApplyTo(solution); }
public void SetUp() { theFinder = new CacheFinder(); theCache = new Feed("cache"); FeedScenario.Create(scenario => { scenario.For(theCache) .Add("Test", "1.1.0.0"); }); theSolution = Solution.Empty(); theSolution.UseCache(new InMemoryNugetCache(theCache)); }
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(); }