Esempio n. 1
0
        public void Update_Lyrics()
        {
            var contract = EditContract();

            contract.Lyrics = new[] {
                CreateEntry.LyricsForSongContract(cultureCode: OptionalCultureCode.LanguageCode_English, translationType: TranslationType.Original)
            };

            queries.UpdateBasicProperties(contract);

            Assert.AreEqual(1, song.Lyrics.Count, "Lyrics were added");
            var lyrics = song.Lyrics.First();

            Assert.AreEqual("Miku Miku", lyrics.Value, "Lyrics text");
        }
Esempio n. 2
0
        public async Task Update_Lyrics()
        {
            var contract = EditContract();

            contract.Lyrics = new[] {
                CreateEntry.LyricsForSongContract(cultureCode: OptionalCultureCode.LanguageCode_English, translationType: TranslationType.Original)
            };

            await _queries.UpdateBasicProperties(contract);

            _song.Lyrics.Count.Should().Be(1, "Lyrics were added");
            var lyrics = _song.Lyrics.First();

            lyrics.Value.Should().Be("Miku Miku", "Lyrics text");
        }