Skip to content

Commit

Permalink
Update noda_time_acceptance.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaNitschke committed Mar 15, 2024
1 parent e9326c7 commit 2f84f06
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void can_insert_document(SerializerType serializerType)
[Theory]
[InlineData(SerializerType.SystemTextJson)]
[InlineData(SerializerType.Newtonsoft)]
public void can_query_document_with_noda_time_types(SerializerType serializerType)
public async Task can_query_document_with_noda_time_types(SerializerType serializerType)
{
StoreOptions(_ =>
{
Expand All @@ -137,6 +137,7 @@ public void can_query_document_with_noda_time_types(SerializerType serializerTyp
{
session.Insert(testDoc);
session.SaveChanges();
var doc = await session.LoadAsync<TargetWithDates>(testDoc.Id);
}

using (var query = theStore.QuerySession())
Expand Down Expand Up @@ -185,6 +186,7 @@ public void can_query_document_with_noda_time_types(SerializerType serializerTyp
query.Query<TargetWithDates>().FirstOrDefault(d => d.NullableInstantUTC > instantUTC.PlusTicks(-1000)),
query.Query<TargetWithDates>().FirstOrDefault(d => d.NullableInstantUTC >= instantUTC.PlusTicks(-1000))


};

results.ToArray().ShouldAllBe(x => x.Equals(testDoc));
Expand Down

0 comments on commit 2f84f06

Please sign in to comment.