public void TestRemove() { long count = MongoEntity.RemoveAll <Student>(e => e.Name == "hyf"); var ret = MongoEntity.Select <Student>(s => s.Name == "hyf").Count(); Assert.Greater(count, ret); }
public void Clear() { MongoEntity.RemoveAll <Student>(); MongoEntity.RemoveAll <Teacher>(); MongoEntity.RemoveAll <Grade>(); MongoEntity.RemoveAll <School>(); MongoEntity.RemoveAllFiles <MyFile>(); MongoDBRepository.UnregisterDBContext <TestDBContext>(); }
public void Remove() { MongoEntity.RemoveAll <Passport>(); MongoEntity.RemoveAll <Profile>(); }