diff --git a/AsbCloudWebApi.IntegrationTests/Controllers/WellOperationControllerTest.cs b/AsbCloudWebApi.IntegrationTests/Controllers/WellOperationControllerTest.cs
index 809ccf1d..3ac32e40 100644
--- a/AsbCloudWebApi.IntegrationTests/Controllers/WellOperationControllerTest.cs
+++ b/AsbCloudWebApi.IntegrationTests/Controllers/WellOperationControllerTest.cs
@@ -1,4 +1,5 @@
using AsbCloudApp.Data;
+using AsbCloudDb.Model;
using AsbCloudWebApi.IntegrationTests.Clients;
using System.Net;
using Xunit;
@@ -96,14 +97,15 @@ public class WellOperationControllerTest : BaseIntegrationTest
}
///
- /// Успешное добавление операций (с предварительной очисткой данных)
+ /// Успешное добавление операций (без предварительной очистки данных)
///
///
[Fact]
public async Task InsertRange_returns_success()
{
+ dbContext.CleanupDbSet();
//act
- var response = await wellOperationClient.InsertRangeAsync(idWell, 1, true, dtos);
+ var response = await wellOperationClient.InsertRangeAsync(idWell, 1, false, dtos);
//assert
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
@@ -111,14 +113,14 @@ public class WellOperationControllerTest : BaseIntegrationTest
///
- /// Неуспешное добавление операций (с предварительной очисткой данных)
+ /// Неуспешное добавление операций (без предварительной очистки данных)
///
///
[Fact]
public async Task InsertRange_returns_error()
{
//act
- var response = await wellOperationClient.InsertRangeAsync(idWell, 1, true, dtosWithError);
+ var response = await wellOperationClient.InsertRangeAsync(idWell, 1, false, dtosWithError);
//assert
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);
@@ -132,7 +134,7 @@ public class WellOperationControllerTest : BaseIntegrationTest
public async Task InsertRangeWithDeleteBefore_returns_success()
{
//act
- var response = await wellOperationClient.InsertRangeAsync(idWell, 1, false, dtos);
+ var response = await wellOperationClient.InsertRangeAsync(idWell, 1, true, dtos);
//assert
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
@@ -146,7 +148,7 @@ public class WellOperationControllerTest : BaseIntegrationTest
public async Task InsertRangeWithDeleteBefore_returns_error()
{
//act
- var response = await wellOperationClient.InsertRangeAsync(idWell, 1, false, dtosWithError);
+ var response = await wellOperationClient.InsertRangeAsync(idWell, 1, true, dtosWithError);
//assert
Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode);