public void TestGetTrackAllPropertiesRequest() { var track = SoundCloudApiUnAuthenticated.Track(TrackId).Get(); var expectedTrack = new Track { Id = TrackId, CreatedAt = new DateTime(2010, 01, 17, 15, 21, 17), UserId = 509497, Duration = 284158, Commentable = true, State = "finished", OriginalContentSize = 50132660, Sharing = "public", TagList = String.Empty, Permalink = "lost-in-kakariko", Streamable = true, EmbeddableBy = "all", Downloadable = false, PurchaseUrl = "http://www.junodownload.com/products/1554271-02.htm", LabelId = 4804, Genre = "Future Garage", Title = "Lost in Kakariko", Description = "Car Crash Set (C/C/S2009)", TrackType = "original", Bpm = 141.0f, Isrc = String.Empty, KeySignature = String.Empty, LabelName = String.Empty, Release = String.Empty, OriginalFormat = "wav", License = "all-rights-reserved", Uri = "http://api.soundcloud.com/tracks/1379060", User = new User { Id = 509497, Permalink = "owlandrews", Username = "******", Uri = "http://api.soundcloud.com/users/509497", PermalinkUrl = "http://soundcloud.com/owlandrews", AvatarUrl = "http://i1.sndcdn.com/avatars-000016346611-rvk5pn-large.jpg" }, Label = new User { Id = 4804, Permalink = "carcrashset", Username = "******", Uri = "http://api.soundcloud.com/users/4804", PermalinkUrl = "http://soundcloud.com/carcrashset", AvatarUrl = "http://i1.sndcdn.com/avatars-000000176052-e69d19-large.jpg" }, PermalinkUrl = "http://soundcloud.com/owlmusic/lost-in-kakariko", ArtworkUrl = "http://i1.sndcdn.com/artworks-000001070867-60u1mw-large.jpg", WaveformUrl = "http://w1.sndcdn.com/0PhxMYJBKnps_m.png", StreamUrl = "http://api.soundcloud.com/tracks/1379060/stream", PlaybackCount = 1, DownloadCount = 0, FavoritingsCount = 1, CommentCount = 1, AttachmentsUri = "http://api.soundcloud.com/tracks/1379060/attachments" }; Assert.GreaterOrEqual(track.PlaybackCount, expectedTrack.PlaybackCount); Assert.GreaterOrEqual(track.FavoritingsCount, expectedTrack.FavoritingsCount); Assert.GreaterOrEqual(track.CommentCount, expectedTrack.CommentCount); }
private void TrackBuilder(Track result) { _asyncTrackResult = result; Completion.Set(); }