Skip to content

Commit

Permalink
Update date format in unit test SQL statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn committed Nov 6, 2024
1 parent 6347d64 commit 3a3751f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public EducationOrganizationTestDataBuilder AddStaffEducationOrganizationEmploym
{schoolId},
{staffUSI},
{TestEmploymentStatusDescriptorId},
'{ entryDate }');"
'{ entryDate?.Date.ToShortDateString() }');"

);

Expand All @@ -105,7 +105,7 @@ public EducationOrganizationTestDataBuilder AddStaffEducationOrganizationAssignm
{schoolId},
{staffUSI},
{TestStaffClassificationDescriptorId},
'{ entryDate }');"
'{ entryDate?.Date.ToShortDateString() }');"
);

return this;
Expand All @@ -122,7 +122,7 @@ public EducationOrganizationTestDataBuilder AddStaff(string newGuidId)
VALUES (
'{newGuidId}',
'{newGuidId}',
'{ DateTime.Now }',
'{ DateTime.UtcNow.Date.ToShortDateString() }',
'{newGuidId}');"
);
return this;
Expand Down Expand Up @@ -245,7 +245,7 @@ public EducationOrganizationTestDataBuilder AddStudent(string newGuidId)
VALUES (
'{newGuidId}',
'{newGuidId}',
'{DateTime.UtcNow.Date}',
'{DateTime.UtcNow.Date.ToShortDateString()}',
'{newGuidId}');"
);

Expand All @@ -268,7 +268,7 @@ public EducationOrganizationTestDataBuilder AddStudentSchoolAssociation(long sch
VALUES (
{schoolId},
{studentUSI},
'{entryDate}',
'{entryDate?.Date.ToShortDateString()}',
{TestGradeLevelDescriptorId});"
);

Expand All @@ -289,7 +289,7 @@ public EducationOrganizationTestDataBuilder AddStudentEducationOrganizationRespo
StudentUSI,
ResponsibilityDescriptorId)
VALUES (
'{entryDate}',
'{entryDate?.Date.ToShortDateString()}',
{schoolId},
{studentUSI},
{TestResponsibilityDescriptorId});"
Expand Down

0 comments on commit 3a3751f

Please sign in to comment.