forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHttpIdTest.cs
40 lines (36 loc) · 1.14 KB
/
HttpIdTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// -----------------------------------------------------------------------
// <copyright file="HttpIdTest.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
using Raven.Tests.Common;
using Raven.Tests.Helpers;
using Xunit;
namespace Raven.Tests.MailingList
{
public class HttpIdTest : RavenTestBase
{
[Fact]
//[TimeBombedFact(2014, 3, 1)]
public void CanLoadIdWithHttp()
{
using (var store = NewRemoteDocumentStore())
{
using (var session = store.OpenSession())
{
session.Store(new Foo { Id = "http://whatever" });
session.SaveChanges();
}
using (var session = store.OpenSession())
{
var foo = session.Load<Foo>("http://whatever");
Assert.NotNull(foo);
}
}
}
public class Foo
{
public string Id { get; set; }
}
}
}