public async Task Deve_Retornar_Objeto_Mencionados_name() { var twMoq = new Mock <ITweets>(); ITweets tweets = twMoq.Object; var test = await tweets.ObterMaisMencionados(); test.Should().BeOfType <TweetsMaisMencionadosName[]>(); }
public async Task Deve_Retornar_Objeto_Tweets_Mais_Relevantes() { var twMoq = new Mock <ITweets>(); ITweets tweets = twMoq.Object; var test = await tweets.ObterMaisRelevantes(); test.Should().BeOfType <TweetsMaisRelevantes[]>(); }
/// <summary> /// Initializes a new instance of the <see cref="TwitterViewModel" /> class. /// </summary> /// <param name="tweets">The tweets.</param> /// <param name="navigationService">The navigation service.</param> /// <param name="resourceLoader">The resource loader.</param> /// <exception cref="System.ArgumentNullException"></exception> public TwitterViewModel(ITweets tweets, INavigationService navigationService, ResourceLoader resourceLoader) : base(navigationService, resourceLoader) { if (tweets == null) { throw new ArgumentNullException("tweets"); } _tweets = tweets; Tweets = new ObservableCollection<Tweet>(); LoadTweets(); }
public TwitterController(ITweets tweets) { _tweets = tweets; }
public void Initialize() { _repository = new Tweets(); }