Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliyChaban committed Sep 23, 2024
1 parent 83450c0 commit 46dca45
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,6 @@ public void ConvertDateTimeValue_NonStandardPrimitives_DefaultTimeZoneInfo(DateT
[MemberData(nameof(ConvertDateTime_NonStandardPrimitives_Data))]
public void ConvertDateTimeValue_ImplicitKind(DateTimeOffset valueToConvert)
{
//Some databases (for example, Npgsql) require an explicit indication of Kind = Utc
//and do not accept Local and Unspecified in the new versions of the framework

//example: Cannot write DateTime with Kind=Unspecified to PostgreSQL type 'timestamp with time zone', only UTC is supported

// Arrange & Act
object actual = EdmPrimitiveHelper.ConvertPrimitiveValue(valueToConvert, typeof(DateTime));

Expand All @@ -145,11 +140,6 @@ public void ConvertDateTimeValue_ImplicitKind(DateTimeOffset valueToConvert)
[MemberData(nameof(ConvertDateTime_NonStandardPrimitives_Data))]
public void ConvertDateTimeValue_ExplicitLocalKind(DateTimeOffset valueToConvert)
{
//Some databases (for example, Npgsql) require an explicit indication of Kind = Utc
//and do not accept Local and Unspecified in the new versions of the framework

//example: Cannot write DateTime with Kind=Unspecified to PostgreSQL type 'timestamp with time zone', only UTC is supported

// Arrange & Act
object actual = EdmPrimitiveHelper.ConvertPrimitiveValue(valueToConvert, typeof(DateTime), TimeZoneInfo.Local);

Expand All @@ -162,11 +152,6 @@ public void ConvertDateTimeValue_ExplicitLocalKind(DateTimeOffset valueToConvert
[MemberData(nameof(ConvertDateTime_NonStandardPrimitives_Data))]
public void ConvertDateTimeValue_ExplicitUtcKind(DateTimeOffset valueToConvert)
{
//Some databases (for example, Npgsql) require an explicit indication of Kind = Utc
//and do not accept Local and Unspecified in the new versions of the framework

//example: Cannot write DateTime with Kind=Unspecified to PostgreSQL type 'timestamp with time zone', only UTC is supported

// Arrange & Act
object actual = EdmPrimitiveHelper.ConvertPrimitiveValue(valueToConvert, typeof(DateTime), TimeZoneInfo.Utc);

Expand Down Expand Up @@ -197,4 +182,4 @@ public void ConvertPrimitiveValue_Throws(object valueToConvert, Type conversionT
() => EdmPrimitiveHelper.ConvertPrimitiveValue(valueToConvert, conversionType),
exception);
}
}
}

0 comments on commit 46dca45

Please sign in to comment.