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); }
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 new void TearDown() { trackGateway.Delete(RecordingDataSet, trackId); base.TearDown(); }
public void Delete() { trackGateway.Delete(recordingDataSet, trackId); artistGateway.Delete(recordingDataSet, artistId); }
public void Delete() { trackGateway.Delete(recordingDataSet, trackId); genreGateway.Delete(recordingDataSet, genreId); }
public void TearDown() { gateway.Delete(recordingDataSet, trackId); }