Skip to content

Commit 1475cc3

Browse files
author
unknown
committed
Merging Ayende latest
1 parent c7261f8 commit 1475cc3

File tree

96 files changed

+39809
-40803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+39809
-40803
lines changed
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
44
using System.Text;
55
using Raven.Database.Server;
6-
using Xunit;
7-
using Raven.Client.Document;
8-
using Raven.Client.Tests.Document;
9-
using System.Reflection;
10-
using System.IO;
11-
using Raven.Server;
12-
using System.Threading;
13-
14-
namespace Raven.Client.Tests.Document
15-
{
16-
public class TotalCountServerTest : BaseTest, IDisposable
17-
{
18-
private readonly string path;
19-
private readonly int port;
20-
21-
public TotalCountServerTest()
22-
{
23-
port = 8080;
24-
path = GetPath("TestDb");
25-
NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);
26-
}
27-
28-
#region IDisposable Members
29-
30-
public void Dispose()
31-
{
32-
Thread.Sleep(100);
33-
Directory.Delete(path, true);
34-
}
35-
36-
#endregion
37-
38-
[Fact]
39-
public void TotalResultIsIncludedInQueryResult()
40-
{
41-
using (var server = GetNewServer(port, path))
42-
{
43-
using (var store = new DocumentStore { Url = "http://localhost:" + port })
44-
{
45-
store.Initialize();
46-
47-
using (var session = store.OpenSession())
48-
{
49-
Company company1 = new Company()
50-
{
51-
Name = "Company1",
52-
Address1 = "",
53-
Address2 = "",
54-
Address3 = "",
55-
Contacts = new List<Contact>(),
56-
Phone = 2
57-
};
58-
Company company2 = new Company()
59-
{
60-
Name = "Company2",
61-
Address1 = "",
62-
Address2 = "",
63-
Address3 = "",
64-
Contacts = new List<Contact>(),
65-
Phone = 2
66-
};
67-
68-
session.Store(company1);
69-
session.Store(company2);
70-
session.SaveChanges();
71-
}
72-
73-
using (var session = store.OpenSession())
74-
{
75-
int resultCount = session.LuceneQuery<Company>().WaitForNonStaleResults().QueryResult.TotalResults;
76-
Assert.Equal(2, resultCount);
77-
}
78-
}
79-
}
80-
81-
82-
83-
}
84-
}
85-
}
6+
using Xunit;
7+
using Raven.Client.Document;
8+
using Raven.Client.Tests.Document;
9+
using System.Reflection;
10+
using System.IO;
11+
using Raven.Server;
12+
using System.Threading;
13+
14+
namespace Raven.Client.Tests.Document
15+
{
16+
public class TotalCountServerTest : BaseTest, IDisposable
17+
{
18+
private readonly string path;
19+
private readonly int port;
20+
21+
public TotalCountServerTest()
22+
{
23+
port = 8080;
24+
path = GetPath("TestDb");
25+
NonAdminHttp.EnsureCanListenToWhenInNonAdminContext(8080);
26+
}
27+
28+
#region IDisposable Members
29+
30+
public void Dispose()
31+
{
32+
Thread.Sleep(100);
33+
Directory.Delete(path, true);
34+
}
35+
36+
#endregion
37+
38+
[Fact]
39+
public void TotalResultIsIncludedInQueryResult()
40+
{
41+
using (var server = GetNewServer(port, path))
42+
{
43+
using (var store = new DocumentStore { Url = "http://localhost:" + port })
44+
{
45+
store.Initialize();
46+
47+
using (var session = store.OpenSession())
48+
{
49+
Company company1 = new Company()
50+
{
51+
Name = "Company1",
52+
Address1 = "",
53+
Address2 = "",
54+
Address3 = "",
55+
Contacts = new List<Contact>(),
56+
Phone = 2
57+
};
58+
Company company2 = new Company()
59+
{
60+
Name = "Company2",
61+
Address1 = "",
62+
Address2 = "",
63+
Address3 = "",
64+
Contacts = new List<Contact>(),
65+
Phone = 2
66+
};
67+
68+
session.Store(company1);
69+
session.Store(company2);
70+
session.SaveChanges();
71+
}
72+
73+
using (var session = store.OpenSession())
74+
{
75+
int resultCount = session.LuceneQuery<Company>().WaitForNonStaleResults().QueryResult.TotalResults;
76+
Assert.Equal(2, resultCount);
77+
}
78+
}
79+
}
80+
81+
82+
83+
}
84+
}
85+
}
-32 Bytes
Binary file not shown.

Raven.Client.Tests/Raven.Client.Tests.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@
178178
</None>
179179
</ItemGroup>
180180
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
181-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
182-
Other similar extension points exist, see Microsoft.Common.targets.
183-
<Target Name="BeforeBuild">
184-
</Target>
185-
<Target Name="AfterBuild">
186-
</Target>
181+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
182+
Other similar extension points exist, see Microsoft.Common.targets.
183+
<Target Name="BeforeBuild">
184+
</Target>
185+
<Target Name="AfterBuild">
186+
</Target>
187187
-->
188188
</Project>
-32 Bytes
Binary file not shown.

Raven.Client/Raven.Client.csproj

+6-6
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@
180180
</None>
181181
</ItemGroup>
182182
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
183-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
184-
Other similar extension points exist, see Microsoft.Common.targets.
185-
<Target Name="BeforeBuild">
186-
</Target>
187-
<Target Name="AfterBuild">
188-
</Target>
183+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
184+
Other similar extension points exist, see Microsoft.Common.targets.
185+
<Target Name="BeforeBuild">
186+
</Target>
187+
<Target Name="AfterBuild">
188+
</Target>
189189
-->
190190
</Project>

Raven.Database.Server.Abstractions/IHttpContext.cs

-30
This file was deleted.

Raven.Database.Server.Abstractions/IHttpRequest.cs

-16
This file was deleted.

Raven.Database.Server.Abstractions/IHttpResponse.cs

-17
This file was deleted.

Raven.Database.Server.Abstractions/Properties/AssemblyInfo.cs

-36
This file was deleted.

Raven.Database.Server.Abstractions/Raven.Database.Server.Abstractions.csproj

-63
This file was deleted.

0 commit comments

Comments
 (0)