Ejemplo n.º 1
0
        public void B_Read_3()
        {
            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.GetSongByTitle("Encore", "Linkin Park");
            Assert.AreEqual(song.Id, songId);
        }