diff --git a/tests/EdFi.Ods.Api.IntegrationTests/EducationOrganizationTestDataBuilder.cs b/tests/EdFi.Ods.Api.IntegrationTests/EducationOrganizationTestDataBuilder.cs index 67d5b8ab7f..6976b16fb0 100644 --- a/tests/EdFi.Ods.Api.IntegrationTests/EducationOrganizationTestDataBuilder.cs +++ b/tests/EdFi.Ods.Api.IntegrationTests/EducationOrganizationTestDataBuilder.cs @@ -80,7 +80,7 @@ public EducationOrganizationTestDataBuilder AddStaffEducationOrganizationEmploym {schoolId}, {staffUSI}, {TestEmploymentStatusDescriptorId}, - '{ entryDate }');" + '{ entryDate?.Date.ToShortDateString() }');" ); @@ -105,7 +105,7 @@ public EducationOrganizationTestDataBuilder AddStaffEducationOrganizationAssignm {schoolId}, {staffUSI}, {TestStaffClassificationDescriptorId}, - '{ entryDate }');" + '{ entryDate?.Date.ToShortDateString() }');" ); return this; @@ -122,7 +122,7 @@ public EducationOrganizationTestDataBuilder AddStaff(string newGuidId) VALUES ( '{newGuidId}', '{newGuidId}', - '{ DateTime.Now }', + '{ DateTime.UtcNow.Date.ToShortDateString() }', '{newGuidId}');" ); return this; @@ -245,7 +245,7 @@ public EducationOrganizationTestDataBuilder AddStudent(string newGuidId) VALUES ( '{newGuidId}', '{newGuidId}', - '{DateTime.UtcNow.Date}', + '{DateTime.UtcNow.Date.ToShortDateString()}', '{newGuidId}');" ); @@ -268,7 +268,7 @@ public EducationOrganizationTestDataBuilder AddStudentSchoolAssociation(long sch VALUES ( {schoolId}, {studentUSI}, - '{entryDate}', + '{entryDate?.Date.ToShortDateString()}', {TestGradeLevelDescriptorId});" ); @@ -289,7 +289,7 @@ public EducationOrganizationTestDataBuilder AddStudentEducationOrganizationRespo StudentUSI, ResponsibilityDescriptorId) VALUES ( - '{entryDate}', + '{entryDate?.Date.ToShortDateString()}', {schoolId}, {studentUSI}, {TestResponsibilityDescriptorId});"