Пример #1
0
        public void TestDemo8MassiveGetAll()
        {
            dynamic albumTable = new Albums();
            IEnumerable<dynamic> allAlbums = albumTable.All();

            foreach (var album in allAlbums)
            {
                Assert.IsNotNullOrEmpty(album.Title);
            }
        }
Пример #2
0
        public void TestDemo8MassiveFind()
        {
            dynamic table = new Albums();
            IEnumerable<dynamic> albumsWithGenreId1 = table.FindBy(GenreId: 1);

            foreach (var album in albumsWithGenreId1)
            {
                Assert.AreEqual("For Those About To Rock We Salute You", album.Title);
                break;
            }
        }