From 0f8bc45e80d41af41ce42e1c59c20a943a077449 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Mon, 13 May 2024 11:18:24 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WellControllerTest.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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