The question here is what are you testing IMO what you should be testing is whether you have called the repository with the correct Func You could do this as
The Moq integration package allows you to automatically create mock dependencies Moq AutoMock class to instantiate the system under test Doing this will