Exemplo n.º 1
0
        public async Task AddSpotifyAuthCodeToRoomAsync_GivenRoomIdAndAuthString_ReturnRoomWithAuthCode()
        {
            var roomdatastore     = new RoomDataStore(_playlistContext);
            var spotifyAuthstring = "aux6wxzz0917hy";

            await roomdatastore.AddSpotifyAuthCodeToRoomAsync("1", spotifyAuthstring);

            var room = await roomdatastore.GetItemAsync("1");

            Assert.AreEqual(spotifyAuthstring, room.SpotifyPlaylist.AuthCode);
            Assert.IsTrue(room.IsSpotifyEnabled);
        }