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 CheckDelete() { RecordingDataSet emptyDataSet = new RecordingDataSet(); long deletedRecordingId = recordingGateway.Insert(emptyDataSet, "Deleted Title", new DateTime(1991, 8, 6), Builder.ArtistId, Builder.LabelId); recordingGateway.Delete(emptyDataSet, deletedRecordingId); RecordingDataSet.Recording deleletedRecording = recordingGateway.FindById(deletedRecordingId, emptyDataSet); Assert.IsNull(deleletedRecording); }
public void Delete(RecordingDataSet dataSet) { artistGateway.Delete(dataSet, artistId); labelGateway.Delete(dataSet, labelId); recordingGateway.Delete(dataSet, recordingId); }