示例#1
0
        public void DeleteTrackFromDatabase()
        {
            RecordingDataSet emptyDataSet   = new RecordingDataSet();
            long             deletedTrackId = gateway.Insert(emptyDataSet, "Deleted Title", 0);

            gateway.Delete(emptyDataSet, deletedTrackId);

            RecordingDataSet.Track deleletedTrack = gateway.FindById(deletedTrackId, emptyDataSet);
            Assert.IsNull(deleletedTrack);
        }
示例#2
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);
 }
示例#3
0
 public new void TearDown()
 {
     trackGateway.Delete(RecordingDataSet, trackId);
     base.TearDown();
 }
示例#4
0
 public void Delete()
 {
     trackGateway.Delete(recordingDataSet, trackId);
     artistGateway.Delete(recordingDataSet, artistId);
 }
 public void Delete()
 {
     trackGateway.Delete(recordingDataSet, trackId);
     genreGateway.Delete(recordingDataSet, genreId);
 }
示例#6
0
 public void TearDown()
 {
     gateway.Delete(recordingDataSet, trackId);
 }