Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
public class LocalRavenServerLocator : RavenServerLocator{ //The path to where I unzipped RavenDB public override string ServerPath => @"C:\RavenDB\RavenDB-4.0.0-rc-40019-windows-x64\Server\Raven.Server.dll";
public override string Command => "dotnet";
public override string CommandArguments => ServerPath;}
[TestFixture]public class LabTest : RavenTestDriver<LocalRavenServerLocator>{ [Test] public async Task SomeTest() { using (var store = GetDocumentStore()) { using (var session = store.OpenAsyncSession()) { await session.StoreAsync(new TestDocument{ Name = "Jens" }); await session.SaveChangesAsync(); }
using (var session = store.OpenAsyncSession()) { var testDocuments = await session.Query<TestDocument>().ToListAsync(); Assert.AreEqual("Jens", testDocuments.First().Name); } } }}
public class TestDocument{ public string Id { get; set; } public string Name { get; set; }} public class LocalRavenServerLocator : RavenServerLocator { //The path to a copy of Raven.Server.dll (should be relative from project root later) public override string ServerPath => @"C:\dev\_Lab\RavenTestLab\tools\Raven.Server.dll";
public override string Command => "dotnet";
public override string CommandArguments => ServerPath; }
System.InvalidOperationException : Unable to start server, log is:
at Raven.TestDriver.RavenTestDriver`1.RunServer() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy`1.CreateValue() at Raven.TestDriver.RavenTestDriver`1.GetDocumentStore(String database, Nullable`1 waitForIndexingTimeout) at RavenTestLab.LabTest.<SomeTest>d__0.MoveNext() in c:\dev\_Lab\RavenTestLab\RavenTestLab\LabTest.cs:line 27To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.