コード例 #1
0
    public void ReviewDeletedFromRecording()
    {
        int beforeCount = Recording.GetReviews().Length;

        ReviewDto dto = service.AddReview(reviewerName, reviewContent, rating,
                                          Recording.Id);

        service.DeleteReview(dto.id);

        RecordingDto recordingDto = service.FindByRecordingId(Recording.Id);

        Assert.AreEqual(beforeCount, recordingDto.reviews.Length);
    }