我试图迁移到新的RavenDb 4.0,用于测试的旧代码使用的是来自NuGet包:RavenDB.Database的EmbeddableDocumentStore。
用法:
var documentStore = new EmbeddableDocumentStore
{
RunInMemory = true
};
documentStore.Configuration.Storage.Voron.AllowOn32Bits = true;
documentStore.Initialize();但是,我在RavenDB 4.0中找不到这个或者simillar类,有什么新的方法来测试依赖乌鸦的代码吗?
谢谢
发布于 2017-11-01 10:38:54
在HTTP4.0中,所有操作都要经过RavenDB管道。
基本上,您将能够使用https://github.com/ravendb/ravendb/blob/v4.0/test/Tests.Infrastructure/TestBase.cs GetNewServer设置一个商店,并在那里有一个runInMemory布尔值。
稍后编辑:正如Ayende所说,它可以通过Raven.TestDriver包使用。
您将需要设置一个服务器,连接到它,并在该实例上运行测试。
https://stackoverflow.com/questions/47052438
复制相似问题