Skip to content

Commit

Permalink
Fixing the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Nov 1, 2011
1 parent a331598 commit 5d5e87b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Raven.Tests/Spatial/Event.cs
Expand Up @@ -19,7 +19,7 @@ public Event(string venue, double lat, double lng)
this.Longitude = lng;
}

public Event(string venue, double lat, double lng, DateTimeOffset date)
public Event(string venue, double lat, double lng, DateTime date)
{
this.Venue = venue;
this.Latitude = lat;
Expand All @@ -30,6 +30,6 @@ public Event(string venue, double lat, double lng, DateTimeOffset date)
public string Venue { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
public DateTimeOffset Date { get; set; }
public DateTime Date { get; set; }
}
}
3 changes: 2 additions & 1 deletion Raven.Tests/Spatial/SpatialIndexTest.cs
Expand Up @@ -7,7 +7,8 @@
using System.Threading;
using Raven.Abstractions.Data;
using Raven.Abstractions.Extensions;
using Raven.Abstractions.Indexing;
using Raven.Abstractions.Indexing;
using Raven.Client.Document;
using Raven.Json.Linq;
using Raven.Database;
using Raven.Database.Config;
Expand Down
8 changes: 4 additions & 4 deletions Raven.Tests/Spatial/SpatialSearch.cs
Expand Up @@ -29,10 +29,10 @@ public void Can_do_spatial_search_with_client_api()

using (var session = store.OpenSession())
{
session.Store(new Event("a/1", 38.9579000, -77.3572000, DateTimeOffset.Now));
session.Store(new Event("a/2", 38.9690000, -77.3862000, DateTimeOffset.Now.AddDays(1)));
session.Store(new Event("b/2", 38.9690000, -77.3862000, DateTimeOffset.Now.AddDays(2)));
session.Store(new Event("c/3", 38.9510000, -77.4107000, DateTimeOffset.Now.AddYears(3)));
session.Store(new Event("a/1", 38.9579000, -77.3572000, DateTime.Now));
session.Store(new Event("a/2", 38.9690000, -77.3862000, DateTime.Now.AddDays(1)));
session.Store(new Event("b/2", 38.9690000, -77.3862000, DateTime.Now.AddDays(2)));
session.Store(new Event("c/3", 38.9510000, -77.4107000, DateTime.Now.AddYears(3)));
session.SaveChanges();
}

Expand Down

0 comments on commit 5d5e87b

Please sign in to comment.