Moq Params TargetParameterCountException : Parameter count mismatch Exception
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 选择语言 中文(简体) 日语 英语 中文(繁体) 由 翻译 强力驱动 问题: Following is my generic base repository interface public interface IRepository { IQueryable AllIncluding ( params Expression >[] includeProperties ); } my entity public class Sdk { public Sdk () { this . Identifier = Guid . NewGuid (). ToString (); } public virtual ICollection AccessibleResources { get ; set ; } public string Identifier { get ; set ; } } and following is the specific repo public interface ISdkRepository : IRepository { } now I am trying to test a controller, using moq Following is the code