Exemplo n.º 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 DeleteArtistFromDatabase()
        {
            RecordingDataSet emptyDataSet    = new RecordingDataSet();
            long             deletedArtistId = gateway.Insert(emptyDataSet, "Deleted Artist");

            gateway.Delete(emptyDataSet, deletedArtistId);

            RecordingDataSet.Artist deleletedArtist =
                gateway.FindById(deletedArtistId, emptyDataSet);
            Assert.IsNull(deleletedArtist);
        }
Exemplo n.º 3
0
 public void Delete()
 {
     trackGateway.Delete(recordingDataSet, trackId);
     artistGateway.Delete(recordingDataSet, artistId);
 }
Exemplo n.º 4
0
 public void Delete(RecordingDataSet dataSet)
 {
     artistGateway.Delete(dataSet, artistId);
     labelGateway.Delete(dataSet, labelId);
     recordingGateway.Delete(dataSet, recordingId);
 }
 public void TearDown()
 {
     gateway.Delete(recordingDataSet, artistId);
 }