From 8af807d0b865ddd5b9c9333b3e429a6c4be7716d Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Tue, 30 Mar 2021 16:44:48 -0400 Subject: [PATCH] Finish converting DateTimeOffsetRange to use DateTimeOffset everywhere --- .../PluralsightDdd.SharedKernel/DateTimeOffsetRange.cs | 8 ++++---- .../PluralsightDdd.SharedKernel.csproj | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SharedKernel/src/PluralsightDdd.SharedKernel/DateTimeOffsetRange.cs b/SharedKernel/src/PluralsightDdd.SharedKernel/DateTimeOffsetRange.cs index 40dbfa8c..40ef037b 100644 --- a/SharedKernel/src/PluralsightDdd.SharedKernel/DateTimeOffsetRange.cs +++ b/SharedKernel/src/PluralsightDdd.SharedKernel/DateTimeOffsetRange.cs @@ -31,22 +31,22 @@ public DateTimeOffsetRange NewDuration(TimeSpan newDuration) return new DateTimeOffsetRange(this.Start, newDuration); } - public DateTimeOffsetRange NewEnd(DateTime newEnd) + public DateTimeOffsetRange NewEnd(DateTimeOffset newEnd) { return new DateTimeOffsetRange(this.Start, newEnd); } - public DateTimeOffsetRange NewStart(DateTime newStart) + public DateTimeOffsetRange NewStart(DateTimeOffset newStart) { return new DateTimeOffsetRange(newStart, this.End); } - public static DateTimeOffsetRange CreateOneDayRange(DateTime day) + public static DateTimeOffsetRange CreateOneDayRange(DateTimeOffset day) { return new DateTimeOffsetRange(day, day.AddDays(1)); } - public static DateTimeOffsetRange CreateOneWeekRange(DateTime startDay) + public static DateTimeOffsetRange CreateOneWeekRange(DateTimeOffset startDay) { return new DateTimeOffsetRange(startDay, startDay.AddDays(7)); } diff --git a/SharedKernel/src/PluralsightDdd.SharedKernel/PluralsightDdd.SharedKernel.csproj b/SharedKernel/src/PluralsightDdd.SharedKernel/PluralsightDdd.SharedKernel.csproj index b90620c1..06f01434 100644 --- a/SharedKernel/src/PluralsightDdd.SharedKernel/PluralsightDdd.SharedKernel.csproj +++ b/SharedKernel/src/PluralsightDdd.SharedKernel/PluralsightDdd.SharedKernel.csproj @@ -12,8 +12,8 @@ Includes common abstractions and base types. https://github.com/ardalis/pluralsight-ddd-fundamentals aspnet asp.net aspnetcore asp.net core ddd dddesign value object entity aggregate domain event pluralsight - Adding DateTimeRangeOffset to BaseDomainEvent. - 1.2.1 + Finish convertin DateTimeOffsetRange to use DateTimeOffset everywhere. + 1.2.2 PluralsightDdd.SharedKernel https://user-images.githubusercontent.com/782127/33497760-facf6550-d69c-11e7-94e4-b3856da259a9.png true