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(); }
public override bool Execute(FindNugetsInput input) { var solution = Solution.For(input); var connectivity = new FeedConnectivity(); var feeds = connectivity.FeedsFor(solution); foreach (var feed in feeds) { connectivity.IfOnline(feed, f => { foreach (var nuget in f.FindLatestByName(input.Nuget)) { RippleLog.Info(string.Format("{0}, {1} ({2})", nuget.Name, nuget.Version, f.Repository.Source)); } }); } return(true); }