Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gliljas committed Apr 22, 2024
1 parent 9bae654 commit a0aa93e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/NHibernate.Test/Async/Linq/DateTimeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ public class DateTimeTestsAsync : TestCase
{
private bool DialectSupportsDateTimeOffset => TestDialect.SupportsSqlType(new SqlType(DbType.DateTimeOffset));
private bool DialectSupportsDateTimeWithScale => TestDialect.SupportsSqlType(new SqlType(DbType.DateTime, 2));

private DateTimeTestsClass[] _referenceEntities = new DateTimeTestsClass[]
{
private readonly DateTimeTestsClass[] _referenceEntities =
[
new() {Id =1, DateTimeValue = new DateTime(1998, 02, 26)},
new() {Id =2, DateTimeValue = new DateTime(1998, 02, 26)},
new() {Id =3, DateTimeValue = new DateTime(1998, 02, 26, 01, 01, 01)},
Expand All @@ -39,7 +38,7 @@ public class DateTimeTestsAsync : TestCase
new() {Id =6, DateTimeValue = new DateTime(1998, 02, 26, 04, 04, 04)},
new() {Id =7, DateTimeValue = new DateTime(1998, 03, 01)},
new() {Id =8, DateTimeValue = new DateTime(2000, 01, 01)}
};
];

protected override string[] Mappings => default;
protected override void AddMappings(Configuration configuration)
Expand Down
7 changes: 3 additions & 4 deletions src/NHibernate.Test/Linq/DateTimeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ public class DateTimeTests : TestCase
{
private bool DialectSupportsDateTimeOffset => TestDialect.SupportsSqlType(new SqlType(DbType.DateTimeOffset));
private bool DialectSupportsDateTimeWithScale => TestDialect.SupportsSqlType(new SqlType(DbType.DateTime, 2));

private DateTimeTestsClass[] _referenceEntities = new DateTimeTestsClass[]
{
private readonly DateTimeTestsClass[] _referenceEntities =
[
new() {Id =1, DateTimeValue = new DateTime(1998, 02, 26)},
new() {Id =2, DateTimeValue = new DateTime(1998, 02, 26)},
new() {Id =3, DateTimeValue = new DateTime(1998, 02, 26, 01, 01, 01)},
Expand All @@ -27,7 +26,7 @@ public class DateTimeTests : TestCase
new() {Id =6, DateTimeValue = new DateTime(1998, 02, 26, 04, 04, 04)},
new() {Id =7, DateTimeValue = new DateTime(1998, 03, 01)},
new() {Id =8, DateTimeValue = new DateTime(2000, 01, 01)}
};
];

protected override string[] Mappings => default;
protected override void AddMappings(Configuration configuration)
Expand Down

0 comments on commit a0aa93e

Please sign in to comment.