Set CallBase to true on your mock. This will call the original virtual methods or properties if they exist, and haven’t been set up to return a canned value.
var mock = new Mock<ProductRepository>() { CallBase = true };
Set CallBase to true on your mock. This will call the original virtual methods or properties if they exist, and haven’t been set up to return a canned value.
var mock = new Mock<ProductRepository>() { CallBase = true };