How to write Mock case for Unit Test

Mar 28 2019 7:57 AM
**I want to write the Mock for the unit test code in MVC5 but little bit confuse in writing that code.
Here is the Function definition:**
public List<CommentsCountInfoResult> GetCommentsCountInfo(int notebookId, int notebookEntryId)
{
return _entities.GetCommentsCountInfo(notebookId,notebookEntryId).ToList();
}
Here is the test case:
[Test]
public void GetCommentsCountInfoTest()
{
var result =_service.GetCommentsCountInfo(1, 1);
//listValue.Setup(m => m.GetCommentsCountInfo(1,1));
var expected = result.Count();
Assert.AreEqual(0, expected);
}