public void Test_For_GetCount_Tasks() { // Arrange int expectedCount = 10; mockTaskRepo.Setup(repo => repo.Count()).Returns(expectedCount); // Act var actualCount = tasksLogicTest.Count(); // Assert Assert.Equal(expectedCount, actualCount); }