public void GetAllNewsItemsForAuthor_ShouldReturnAListOfLength3() { var relations = _relationRepository.GetAllNewsItemsForAuthor(1); Assert.AreEqual(3, relations.Count()); }
/// <summary> /// Gets all relations of authors to news items by id /// </summary> /// <param name="Id">id of author to get news items for</param> /// <returns>all relations of authors to news items by id</returns> private IEnumerable <AuthorNewsItemRelation> getNewsItems(int Id) => _newsItemRelationRepository.GetAllNewsItemsForAuthor(Id);