Example #1
0
        public async Task GetTrackByIsrcCode_NonExistentIsrc_ResultIsNull()
        {
            // arrange
            const string isrc = "NOPE12345678";

            var http     = new HttpClient();
            var accounts = new AccountsService(http, TestsHelper.GetLocalConfig());

            var api = new TracksApi(http, accounts);

            // act
            var track = await api.GetTrackByIsrcCode(isrc);

            // assert
            Assert.IsNull(track);
        }
Example #2
0
        public async Task GetTrackByIsrcCode_Isrc_CorrectResult()
        {
            // arrange
            const string isrc = "GBBKS1700108";

            var http     = new HttpClient();
            var accounts = new AccountsService(http, TestsHelper.GetLocalConfig());

            var api = new TracksApi(http, accounts);

            // act
            var track = await api.GetTrackByIsrcCode(isrc);

            // assert
            Assert.AreEqual(isrc, track.ExternalIds.Isrc);
        }