private static TwitterTrendViewModel Convert(TwitterTrend src) { TwitterTrendViewModel result = new TwitterTrendViewModel { Name = src.Name }; return(result); }
public void Twitter_GetTrendsForAllPlaces() { TwitterTrend tt = new TwitterTrend(new TwitterTestDataSource()); tt.GetData(tt.Context); TwitterDataComponent tdc = tt.DroneDataComponent as TwitterDataComponent; Assert.IsNotNull(tdc.TrendRootList); Assert.AreNotEqual(0, tdc.TrendRootList.Count()); }
public ObservableCollection <TwitterTrend> CollectTrend(IPlaceTrends trends) { TrendCollection collection = new TrendCollection(); foreach (var tr in trends.Trends.ToList()) { TwitterTrend t = new TwitterTrend { Name = tr.Name, URL = tr.URL, Query = tr.Query, PromotedContent = tr.PromotedContent, TweetVolume = tr.TweetVolume, }; collection.Add(t); } return(collection); }
private void OnSelectionChanged() { TwitterTrend trend = ListSelection as TwitterTrend; if (trend == null) { return; } ListSelection = null; var resource = new TwitterResource { Data = trend.Name, Type = ResourceType.Search, User = DataTransfer.CurrentAccount }; ResourceViewModel.Resource = resource; Navigate(Uris.ResourceView); }
public void CurrentTrends() { var result = TwitterTrend.Trends(1); Assert.IsNotNull(result.ResponseObject, result.ErrorMessage); }
public static void CurrentTrends() { TwitterTrendCollection trends = TwitterTrend.Trends(1).ResponseObject; Assert.IsNotNull(trends); }