在我的单元测试中,我设置每个测试都有一个完全空的IDocumentSession.我是这样做的:
[SetUp]
public void SetUp()
{
_store = new EmbeddableDocumentStore
{
RunInMemory = true
};
_store.Initialize();
Session = _store.OpenSession();
}
Run Code Online (Sandbox Code Playgroud)
但我认为这可能是我的测试有点慢的原因.我想知道是否有一个简单的命令来删除数据库中的所有文档.
我想要知道的是:如果我能做到这一点,以及它是否会提高性能.