public override object Create(CreationContext context, Type type) { var types = new List <Type>(_extraInterfaces.Length + 1); types.Add(type); types.AddRange(_extraInterfaces); return(MockFactory.GenerateDynamicMock(types.ToArray())); }
public override object Create(CreationContext context, Type type) { return(MockFactory.GenerateDynamicMock(new [] { type })); }