public FavoriteLinkDataContract[] GetRecentFavoriteLinkCollection( long profileId, int startDaysBack, int endDaysBack) { Trace.WriteLine("GetRecentFavoriteLinkCollection"); FavoriteLinkDomain domain = new FavoriteLinkDomain(); FavoriteLinkCollection favoriteLinks = domain.GetRecentFavoriteLinkCollection(profileId, startDaysBack, endDaysBack); return(GetFavoriteLinksArray(favoriteLinks)); }
public void Test304_GetRecentFavoriteLinks() { domain.SaveFavoriteLink(_profileId1, "http://testlink1.com", "Test Link 1"); domain.SaveFavoriteLink(_profileId1, "http://testlink2.com", "Test Link 2"); domain.SaveFavoriteLink(_profileId1, "http://testlink3.com", "Test Link 3"); FavoriteLinkCollection collection = domain.GetRecentFavoriteLinkCollection(_profileId1, 3, 0); Assert.IsTrue(collection.Count > 0, "Recent FavoriteLinkCollection must have items"); ShowLinks(collection); }