From 450cb4c7710a02da99ce1787d681abbe02facad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fele?= Date: Wed, 30 Oct 2024 19:01:32 +0100 Subject: [PATCH] Fix two tests that used DateTime.MinValue instead of DateTimeOffset.MinValue --- .../QuickAppend/quick_appending_events_workflow_specs.cs | 2 +- src/EventSourcingTests/appending_events_workflow_specs.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventSourcingTests/QuickAppend/quick_appending_events_workflow_specs.cs b/src/EventSourcingTests/QuickAppend/quick_appending_events_workflow_specs.cs index a82a3a34ec..db6196e2fa 100644 --- a/src/EventSourcingTests/QuickAppend/quick_appending_events_workflow_specs.cs +++ b/src/EventSourcingTests/QuickAppend/quick_appending_events_workflow_specs.cs @@ -46,7 +46,7 @@ public override Task AfterCommitAsync(IDocumentSession session, IChangeSet commi { @event.TenantId.ShouldNotBeNull(); - @event.Timestamp.ShouldNotBe(DateTime.MinValue); + @event.Timestamp.ShouldNotBe(DateTimeOffset.MinValue); } return Task.CompletedTask; diff --git a/src/EventSourcingTests/appending_events_workflow_specs.cs b/src/EventSourcingTests/appending_events_workflow_specs.cs index 428b4c1921..24272b9cf8 100644 --- a/src/EventSourcingTests/appending_events_workflow_specs.cs +++ b/src/EventSourcingTests/appending_events_workflow_specs.cs @@ -48,7 +48,7 @@ public override Task AfterCommitAsync(IDocumentSession session, IChangeSet commi { @event.TenantId.ShouldNotBeNull(); - @event.Timestamp.ShouldNotBe(DateTime.MinValue); + @event.Timestamp.ShouldNotBe(DateTimeOffset.MinValue); } return Task.CompletedTask;