【发布时间】:2015-04-14 07:16:07
【问题描述】:
谁能帮我模拟 db.GetCollection 的 MongoDatabase 以使用 Moq 返回模拟数据
//returns MongoDatabase instance
var db = mongoConnector.Connect();
//Return Collection on the type Entity being passed
db.GetCollection<Entity>("CollectionName").AsQueryable().ToList();
【问题讨论】: