예제 #1
0
        public static LockerTrack TrackByKeane()
        {
            var lockerTrack = new LockerTrack
            {
                Track        = TestTrack.EverybodysChanging,
                DownloadUrls = new List <DownloadUrl>
                {
                    new DownloadUrl
                    {
                        Url    = "meh",
                        Format = TestFormat.Mp3
                    }
                },
                PurchaseDate       = DateTime.Now.AddDays(-1),
                RemainingDownloads = 10
            };

            return(lockerTrack);
        }
예제 #2
0
        public static LockerTrack TrackByFleetFoxes()
        {
            var lockerTrack = new LockerTrack
            {
                Track        = TestTrack.SunItRises,
                DownloadUrls = new List <DownloadUrl>
                {
                    new DownloadUrl
                    {
                        Url    = "meh",
                        Format = TestFormat.Mp3
                    }
                },
                PurchaseDate       = DateTime.Now.AddDays(-1),
                RemainingDownloads = 10
            };

            return(lockerTrack);
        }
예제 #3
0
        public static LockerTrack Get(int trackId, string trackTitle)
        {
            var lockerTrack = new LockerTrack
            {
                Track        = TestTrack.SunItRises,
                DownloadUrls = new List <DownloadUrl>
                {
                    new DownloadUrl
                    {
                        Url    = "meh",
                        Format = TestFormat.Mp3
                    }
                },
                PurchaseDate       = DateTime.Now.AddDays(-1),
                RemainingDownloads = 10
            };

            lockerTrack.Track.Id    = trackId;
            lockerTrack.Track.Title = trackTitle;
            return(lockerTrack);
        }