diff --git a/AsbCloudWebApi.IntegrationTests/Controllers/WellControllerTest.cs b/AsbCloudWebApi.IntegrationTests/Controllers/WellControllerTest.cs index 329240fe..fe3fea64 100644 --- a/AsbCloudWebApi.IntegrationTests/Controllers/WellControllerTest.cs +++ b/AsbCloudWebApi.IntegrationTests/Controllers/WellControllerTest.cs @@ -60,8 +60,8 @@ public class WellControllerTest : BaseIntegrationTest var expectedCount = await dbContext.Wells.CountAsync(); Assert.Equal(expectedCount, wellResponse.Content.Count()); - var wellStartDate = wellResponse.Content.ElementAt(0).StartDate!.Value.ToUniversalTime(); - var expectedDate = wellOperations.MinByOrDefault(o => o.DateStart)!.DateStart.ToUniversalTime(); - Assert.Equal(expectedDate.ToString(), wellStartDate.ToString()); + var actualFirstStartDate = wellResponse.Content.ElementAt(0).StartDate!.Value.ToUniversalTime(); + var expectedFirstStartDate = wellOperations.MinByOrDefault(o => o.DateStart)!.DateStart.ToUniversalTime(); + Assert.Equal(expectedFirstStartDate.ToString(), actualFirstStartDate.ToString()); } } \ No newline at end of file