Update MockRepository.cs

To fix compile issue