public async Task DeleteCommentAsyncShouldReturnTheDeletedComment() { var comment = new Comments() { Id = 5, Comment = "shrimp heaven now" }; databaseMock.Setup(db => db.DeleteCommentAsync(It.IsAny <Comments>())).Returns(Task.FromResult <Comments>(comment)); var newMusicBL = new UploadedMusicBL(databaseMock.Object); var result = await newMusicBL.DeleteCommentAsync(comment); Assert.NotNull(result); Assert.Equal("shrimp heaven now", result.Comment); databaseMock.Verify(db => db.DeleteCommentAsync(It.IsAny <Comments>())); }