示例#1
0
        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));
        }
示例#2
0
        public void SetUp()
        {
            domain = new FavoriteLinkDomain();

            _userId1    = new Guid("{E18369A7-99F7-486d-8F0B-96347ABF04ED}");
            _userId2    = new Guid("{E18369A7-99F7-486d-8F0B-96347ABF04EE}");
            _profileId1 = domain.GetFavoriteLinkProfileID(_userId1);
            _profileId2 = domain.GetFavoriteLinkProfileID(_userId2);
        }
示例#3
0
        public FavoriteLinkDataContract[] GetFavoriteLinkCollectionByUrl(
            long profileId, string url)
        {
            Trace.WriteLine("GetFavoriteLinkCollectionByUrl");
            FavoriteLinkDomain     domain        = new FavoriteLinkDomain();
            FavoriteLinkCollection favoriteLinks =
                domain.GetFavoriteLinkCollectionByUrl(profileId, url);

            return(GetFavoriteLinksArray(favoriteLinks));
        }
示例#4
0
        public FavoriteLinkDataContract[] GetFavoriteLinkCollectionByTag(
            long profileId, string token)
        {
            Trace.WriteLine("GetFavoriteLinkCollectionByTag");
            FavoriteLinkDomain     domain        = new FavoriteLinkDomain();
            FavoriteLinkCollection favoriteLinks =
                domain.GetFavoriteLinkCollectionByTag(profileId, token);

            return(GetFavoriteLinksArray(favoriteLinks));
        }
示例#5
0
        public FavoriteLinkDataContract[] GetLatest20FavoriteLinkCollection(
            long profileId)
        {
            Trace.WriteLine("GetLatest20FavoriteLinkCollection");
            FavoriteLinkDomain     domain        = new FavoriteLinkDomain();
            FavoriteLinkCollection favoriteLinks =
                domain.GetLatest20FavoriteLinkCollection(profileId);

            return(GetFavoriteLinksArray(favoriteLinks));
        }
示例#6
0
 public void TearDown()
 {
     domain.PurgeProfile(_profileId1);
     domain.PurgeProfile(_profileId2);
     domain = null;
 }