May 2018
Intermediate to advanced
300 pages
7h 35m
English
CallBase, when initialized during a mock construction, is used to specify whether the base class virtual implementation will be invoked for mocked dependencies if no setup is matched. The default value is false. This is useful when mocking HTML/web controls of the System.Web namespace:
loanRepository= new Mock<ILoanRepository>{CallBase=true};