コード例 #1
0
        public void B_Read_2()
        {
            int songId = 0;

            Project.Data.Repository repo = new Project.Data.Repository(db);
            foreach (var i in repo.GetSongs())
            {
                songId = i.Id;
            }
            Project.Domain.Song song = repo.GetSongById(songId);

            string expectedValue = "Encore";
            string actualValue   = song.Title;

            Assert.AreEqual(expectedValue, actualValue);
            //Assert.Pass();
        }