コード例 #1
0
    public void ReviewAddedToRecording()
    {
        int       beforeCount = Recording.GetReviews().Length;
        ReviewDto dto         = service.AddReview(reviewerName, reviewContent, rating,
                                                  Recording.Id);

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

        Assert.AreEqual(beforeCount + 1, recordingDto.reviews.Length);
    }
    public void InvalidId()
    {
        RecordingDto nullDto = service.FindByRecordingId(2);

        Assert.IsNull(nullDto, "should be null");
    }
 public override void CustomizeRecording()
 {
     service = new CatalogService();
     dto     = service.FindByRecordingId(Recording.Id);
 }