Exemple #1
0
 public void GetItemsByQuery_InserThreeItem_ReturnTwo()
 {
     var repository = new MongoRepository<TestModel4>();
     repository.Drop();
     repository.Insert(new TestModel4 { StringValue = "sinan" });
     repository.Insert(new TestModel4 { StringValue = "sinan" });
     repository.Insert(new TestModel4 { StringValue = "ali" });
     var list = repository.GetItemsByQuery(Query.EQ("StringValue", "sinan"));
     Assert.AreEqual(2, list.Count());
 }