Пример #1
0
 public void TearDown()
 {
     artistGateway.Delete(recordingDataSet, artistId);
     labelGateway.Delete(recordingDataSet, labelId);
     genreGateway.Delete(recordingDataSet, genreId);
     reviewerGateway.Delete(recordingDataSet, reviewerId);
     reviewGateway.Delete(recordingDataSet, reviewId);
     trackGateway.Delete(recordingDataSet, trackId);
     recordingGateway.Delete(recordingDataSet, recordingId);
 }
        public void DeleteGenreFromDatabase()
        {
            RecordingDataSet emptyDataSet   = new RecordingDataSet();
            long             deletedGenreId = gateway.Insert(emptyDataSet, "Deleted Genre");

            gateway.Delete(emptyDataSet, deletedGenreId);

            RecordingDataSet.Genre deletedGenre =
                gateway.FindById(deletedGenreId, emptyDataSet);
            Assert.IsNull(deletedGenre);
        }
 public void Delete()
 {
     trackGateway.Delete(recordingDataSet, trackId);
     genreGateway.Delete(recordingDataSet, genreId);
 }
 public void TearDown()
 {
     gateway.Delete(recordingDataSet, genreId);
 }