Moq Params TargetParameterCountException : Parameter count mismatch Exception
问题 Following is my generic base repository interface public interface IRepository<T> { IQueryable<T> AllIncluding(params Expression<Func<T, object>>[] includeProperties); } my entity public class Sdk { public Sdk() { this.Identifier = Guid.NewGuid().ToString(); } public virtual ICollection<Resource> AccessibleResources { get; set; } public string Identifier { get; set; } } and following is the specific repo public interface ISdkRepository : IRepository<Sdk> { } now I am trying to test a