forked from ddrilling/AsbCloudServer
Интеграционные тесты для РТК-план
This commit is contained in:
parent
f47fc4f384
commit
daa6371d6f
@ -0,0 +1,71 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план противоаварийное вращение
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsAnticrashRotationControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsAnticrashRotation, ProcessMapPlanFunctionsAnticrashRotationDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsAnticrashRotationControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsAnticrashRotation")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsAnticrashRotationDto dto = new ProcessMapPlanFunctionsAnticrashRotationDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
MinRPM = 1,
|
||||||
|
MinСonsumptionStartingFlowRate = 1,
|
||||||
|
TopDriveTorqueLimitMax = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsAnticrashRotation entity = new ProcessMapPlanFunctionsAnticrashRotation()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
MinRPM = 1,
|
||||||
|
MinСonsumptionStartingFlowRate = 1,
|
||||||
|
TopDriveTorqueLimitMax = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsAnticrashRotation GetByNote(DbSet<ProcessMapPlanFunctionsAnticrashRotation> dbSet, ProcessMapPlanFunctionsAnticrashRotationDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsAnticrashRotationDto GetByNote(IEnumerable<ProcessMapPlanFunctionsAnticrashRotationDto> dtos, ProcessMapPlanFunctionsAnticrashRotationDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsAnticrashRotation? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план автоудержание
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsAutoHoldControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsAutoHold, ProcessMapPlanFunctionsAutoHoldDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsAutoHoldControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsAutoHold")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsAutoHoldDto dto = new ProcessMapPlanFunctionsAutoHoldDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
Note = "1",
|
||||||
|
ZenithAngle = 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsAutoHold entity = new ProcessMapPlanFunctionsAutoHold()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
Note = "1",
|
||||||
|
ZenithAngle = 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsAutoHold GetByNote(DbSet<ProcessMapPlanFunctionsAutoHold> dbSet, ProcessMapPlanFunctionsAutoHoldDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsAutoHoldDto GetByNote(IEnumerable<ProcessMapPlanFunctionsAutoHoldDto> dtos, ProcessMapPlanFunctionsAutoHoldDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsAutoHold? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план демпфер
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsDamperControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsDamper, ProcessMapPlanFunctionsDamperDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsDamperControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsDamper")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsDamperDto dto = new ProcessMapPlanFunctionsDamperDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
Note = "1",
|
||||||
|
StickSlip = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsDamper entity = new ProcessMapPlanFunctionsDamper()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
Note = "1",
|
||||||
|
StickSlip = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsDamper GetByNote(DbSet<ProcessMapPlanFunctionsDamper> dbSet, ProcessMapPlanFunctionsDamperDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsDamperDto GetByNote(IEnumerable<ProcessMapPlanFunctionsDamperDto> dtos, ProcessMapPlanFunctionsDamperDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsDamper? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,79 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план дрилтест
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsDrillTestControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsDrillTest, ProcessMapPlanFunctionsDrillTestDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsDrillTestControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsDrillTest")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsDrillTestDto dto = new ProcessMapPlanFunctionsDrillTestDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAutostartOrWarning = true,
|
||||||
|
LengthStep = 1,
|
||||||
|
Note = "1",
|
||||||
|
NumberOfStepsBit = 1,
|
||||||
|
NumberOfStepsRPM = 1,
|
||||||
|
RevolutionPerMinuteMin = 1,
|
||||||
|
WeightOnBitMin = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsDrillTest entity = new ProcessMapPlanFunctionsDrillTest()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
IdAutostartOrWarning = true,
|
||||||
|
LengthStep = 1,
|
||||||
|
Note = "1",
|
||||||
|
NumberOfStepsBit = 1,
|
||||||
|
NumberOfStepsRPM = 1,
|
||||||
|
RevolutionPerMinuteMin = 1,
|
||||||
|
WeightOnBitMin = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsDrillTest GetByNote(DbSet<ProcessMapPlanFunctionsDrillTest> dbSet, ProcessMapPlanFunctionsDrillTestDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsDrillTestDto GetByNote(IEnumerable<ProcessMapPlanFunctionsDrillTestDto> dtos, ProcessMapPlanFunctionsDrillTestDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsDrillTest? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,71 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план встряхивание бурового инструмента
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsJarrDrillToolControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsJarrDrillTool, ProcessMapPlanFunctionsJarrDrillToolDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsJarrDrillToolControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsJarrDrillTool")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsJarrDrillToolDto dto = new ProcessMapPlanFunctionsJarrDrillToolDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
Buckling = 1,
|
||||||
|
Note = "1",
|
||||||
|
ZenithAngle = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsJarrDrillTool entity = new ProcessMapPlanFunctionsJarrDrillTool()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
Buckling = 1,
|
||||||
|
Note = "1",
|
||||||
|
ZenithAngle = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsJarrDrillTool GetByNote(DbSet<ProcessMapPlanFunctionsJarrDrillTool> dbSet, ProcessMapPlanFunctionsJarrDrillToolDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsJarrDrillToolDto GetByNote(IEnumerable<ProcessMapPlanFunctionsJarrDrillToolDto> dtos, ProcessMapPlanFunctionsJarrDrillToolDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsJarrDrillTool? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,79 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план осцилляция
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsOscillationControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsOscillation, ProcessMapPlanFunctionsOscillationDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsOscillationControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsOscillation")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsOscillationDto dto = new ProcessMapPlanFunctionsOscillationDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
Mode = true,
|
||||||
|
Note = "1",
|
||||||
|
OptimalOscillationAngle = 1,
|
||||||
|
RPMLeft = 2,
|
||||||
|
RPMRight = 3,
|
||||||
|
TorqueLimitLeft = 4,
|
||||||
|
TorqueLimitRight = 5
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsOscillation entity = new ProcessMapPlanFunctionsOscillation()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
Mode = true,
|
||||||
|
Note = "1",
|
||||||
|
OptimalOscillationAngle = 1,
|
||||||
|
RPMLeft = 2,
|
||||||
|
RPMRight = 3,
|
||||||
|
TorqueLimitLeft = 4,
|
||||||
|
TorqueLimitRight = 5
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsOscillation GetByNote(DbSet<ProcessMapPlanFunctionsOscillation> dbSet, ProcessMapPlanFunctionsOscillationDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsOscillationDto GetByNote(IEnumerable<ProcessMapPlanFunctionsOscillationDto> dtos, ProcessMapPlanFunctionsOscillationDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsOscillation? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план shock test
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsShockTestControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsShockTest, ProcessMapPlanFunctionsShockTestDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsShockTestControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsShockTest")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsShockTestDto dto = new ProcessMapPlanFunctionsShockTestDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
AxialVibrations = 1,
|
||||||
|
CombinedVibrations = 2,
|
||||||
|
IdAutostartOrWarning = true,
|
||||||
|
Note = "1",
|
||||||
|
RevolutionPerMinuteMin = 1,
|
||||||
|
StickSlip = 1,
|
||||||
|
WeightOnBitMin = 1,
|
||||||
|
Whirl = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsShockTest entity = new ProcessMapPlanFunctionsShockTest()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
AxialVibrations = 1,
|
||||||
|
CombinedVibrations = 2,
|
||||||
|
IdAutostartOrWarning = true,
|
||||||
|
Note = "1",
|
||||||
|
RevolutionPerMinuteMin = 1,
|
||||||
|
StickSlip = 1,
|
||||||
|
WeightOnBitMin = 1,
|
||||||
|
Whirl = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsShockTest GetByNote(DbSet<ProcessMapPlanFunctionsShockTest> dbSet, ProcessMapPlanFunctionsShockTestDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsShockTestDto GetByNote(IEnumerable<ProcessMapPlanFunctionsShockTestDto> dtos, ProcessMapPlanFunctionsShockTestDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsShockTest? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план выход статического замера
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsStaticMeasureControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsStaticMeasure, ProcessMapPlanFunctionsStaticMeasureDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsStaticMeasureControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsStaticMeasure")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsStaticMeasureDto dto = new ProcessMapPlanFunctionsStaticMeasureDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
SignalWaitingTime = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsStaticMeasure entity = new ProcessMapPlanFunctionsStaticMeasure()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
SignalWaitingTime = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsStaticMeasure GetByNote(DbSet<ProcessMapPlanFunctionsStaticMeasure> dbSet, ProcessMapPlanFunctionsStaticMeasureDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsStaticMeasureDto GetByNote(IEnumerable<ProcessMapPlanFunctionsStaticMeasureDto> dtos, ProcessMapPlanFunctionsStaticMeasureDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsStaticMeasure? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план обновление холостого хода
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanFunctionsUpgradeNoloadControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsUpgradeNoload, ProcessMapPlanFunctionsUpgradeNoloadDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanFunctionsUpgradeNoloadControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsUpgradeNoload")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanFunctionsUpgradeNoloadDto dto = new ProcessMapPlanFunctionsUpgradeNoloadDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdDeclineSocketColumn = true,
|
||||||
|
Note = "1"
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanFunctionsUpgradeNoload entity = new ProcessMapPlanFunctionsUpgradeNoload()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
IdDeclineSocketColumn = true,
|
||||||
|
Note = "1"
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsUpgradeNoload GetByNote(DbSet<ProcessMapPlanFunctionsUpgradeNoload> dbSet, ProcessMapPlanFunctionsUpgradeNoloadDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsUpgradeNoloadDto GetByNote(IEnumerable<ProcessMapPlanFunctionsUpgradeNoloadDto> dtos, ProcessMapPlanFunctionsUpgradeNoloadDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanFunctionsUpgradeNoload? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,77 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план определения углов осцилляции
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationDeterminationOfOscillationAnglesControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationDeterminationOfOscillationAngles, ProcessMapPlanOperationDeterminationOfOscillationAnglesDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationDeterminationOfOscillationAnglesControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationDeterminationOfOscillationAngles")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationDeterminationOfOscillationAnglesDto dto = new ProcessMapPlanOperationDeterminationOfOscillationAnglesDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
DifferentialPressure = 1,
|
||||||
|
MaxPressure = 2,
|
||||||
|
Reaming1ROPDown = 3,
|
||||||
|
Reaming1ROPUp = 4,
|
||||||
|
SetpointsSlackingOff = 5,
|
||||||
|
SetpointsTight = 6
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationDeterminationOfOscillationAngles entity = new ProcessMapPlanOperationDeterminationOfOscillationAngles()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
DifferentialPressure = 1,
|
||||||
|
MaxPressure = 2,
|
||||||
|
Reaming1ROPDown = 3,
|
||||||
|
Reaming1ROPUp = 4,
|
||||||
|
SetpointsSlackingOff = 5,
|
||||||
|
SetpointsTight = 6
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationDeterminationOfOscillationAngles GetByNote(DbSet<ProcessMapPlanOperationDeterminationOfOscillationAngles> dbSet, ProcessMapPlanOperationDeterminationOfOscillationAnglesDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationDeterminationOfOscillationAnglesDto GetByNote(IEnumerable<ProcessMapPlanOperationDeterminationOfOscillationAnglesDto> dtos, ProcessMapPlanOperationDeterminationOfOscillationAnglesDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationDeterminationOfOscillationAngles? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,73 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план выработка нагрузки
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationLoadCapacityControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationLoadCapacity, ProcessMapPlanOperationLoadCapacityDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationLoadCapacityControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationLoadCapacity")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationLoadCapacityDto dto = new ProcessMapPlanOperationLoadCapacityDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
DifferentialPressureMin = 1,
|
||||||
|
Note = "2",
|
||||||
|
TimeLoadCapacityMin = 2,
|
||||||
|
WeightOnBitMin = 3,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationLoadCapacity entity = new ProcessMapPlanOperationLoadCapacity()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
DifferentialPressureMin = 1,
|
||||||
|
Note = "2",
|
||||||
|
TimeLoadCapacityMin = 2,
|
||||||
|
WeightOnBitMin = 3,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationLoadCapacity GetByNote(DbSet<ProcessMapPlanOperationLoadCapacity> dbSet, ProcessMapPlanOperationLoadCapacityDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationLoadCapacityDto GetByNote(IEnumerable<ProcessMapPlanOperationLoadCapacityDto> dtos, ProcessMapPlanOperationLoadCapacityDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationLoadCapacity? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план позиционирование над забоем
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationPositioningOffTheBottomControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationPositioningOffTheBottom, ProcessMapPlanOperationPositioningOffTheBottomDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationPositioningOffTheBottomControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationPositioningOffTheBottom")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationPositioningOffTheBottomDto dto = new ProcessMapPlanOperationPositioningOffTheBottomDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
StopOffTheBottom = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationPositioningOffTheBottom entity = new ProcessMapPlanOperationPositioningOffTheBottom()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
StopOffTheBottom = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationPositioningOffTheBottom GetByNote(DbSet<ProcessMapPlanOperationPositioningOffTheBottom> dbSet, ProcessMapPlanOperationPositioningOffTheBottomDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationPositioningOffTheBottomDto GetByNote(IEnumerable<ProcessMapPlanOperationPositioningOffTheBottomDto> dtos, ProcessMapPlanOperationPositioningOffTheBottomDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationPositioningOffTheBottom? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,131 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план проработка для ротора
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationReamingRotorControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationReamingRotor, ProcessMapPlanOperationReamingRotorDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationReamingRotorControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingRotor")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationReamingRotorDto dto = new ProcessMapPlanOperationReamingRotorDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
DifferentialPressure = 2,
|
||||||
|
MaxPressure = 3,
|
||||||
|
MaxTorque = 4,
|
||||||
|
Note = "5",
|
||||||
|
Reaming3NumberOfRepetitions = 5,
|
||||||
|
SetpointsTight = 6,
|
||||||
|
Reaming1FlowRateDown = 7,
|
||||||
|
Reaming2FlowRateDown = 8,
|
||||||
|
Reaming3FlowRateDown = 9,
|
||||||
|
Reaming1FlowRateUp = 10,
|
||||||
|
Reaming1Interval = 11,
|
||||||
|
Reaming2Interval = 12,
|
||||||
|
Reaming1NumberOfRepetitions = 1,
|
||||||
|
Reaming1ROPDown = 13,
|
||||||
|
Reaming2ROPDown = 14,
|
||||||
|
Reaming3ROPDown = 15,
|
||||||
|
Reaming1ROPUp = 16,
|
||||||
|
Reaming1RPMDown = 17,
|
||||||
|
Reaming2RPMDown = 18,
|
||||||
|
Reaming3RPMDown = 19,
|
||||||
|
Reaming1RPMUp = 20,
|
||||||
|
Reaming2RPMUp = 1,
|
||||||
|
Reaming3RPMUp = 2,
|
||||||
|
Reaming1StopPointOffBottom = 3,
|
||||||
|
Reaming2FlowRateUp = 4,
|
||||||
|
Reaming3FlowRateUp = 5,
|
||||||
|
Reaming2NumberOfRepetitions = 6,
|
||||||
|
Reaming2ROPUp = 7,
|
||||||
|
Reaming2StopPointOffBottom = 1,
|
||||||
|
Reaming3Interval = 2,
|
||||||
|
Reaming3ROPUp = 3,
|
||||||
|
Reaming3StopPointOffBottom = 4,
|
||||||
|
SetpointsSlackingOff = 5
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationReamingRotor entity = new ProcessMapPlanOperationReamingRotor()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
DifferentialPressure = 2,
|
||||||
|
MaxPressure = 3,
|
||||||
|
MaxTorque = 4,
|
||||||
|
Note = "5",
|
||||||
|
Reaming3NumberOfRepetitions = 5,
|
||||||
|
SetpointsTight = 6,
|
||||||
|
Reaming1FlowRateDown = 7,
|
||||||
|
Reaming2FlowRateDown = 8,
|
||||||
|
Reaming3FlowRateDown = 9,
|
||||||
|
Reaming1FlowRateUp = 10,
|
||||||
|
Reaming1Interval = 11,
|
||||||
|
Reaming2Interval = 12,
|
||||||
|
Reaming1NumberOfRepetitions = 1,
|
||||||
|
Reaming1ROPDown = 13,
|
||||||
|
Reaming2ROPDown = 14,
|
||||||
|
Reaming3ROPDown = 15,
|
||||||
|
Reaming1ROPUp = 16,
|
||||||
|
Reaming1RPMDown = 17,
|
||||||
|
Reaming2RPMDown = 18,
|
||||||
|
Reaming3RPMDown = 19,
|
||||||
|
Reaming1RPMUp = 20,
|
||||||
|
Reaming2RPMUp = 1,
|
||||||
|
Reaming3RPMUp = 2,
|
||||||
|
Reaming1StopPointOffBottom = 3,
|
||||||
|
Reaming2FlowRateUp = 4,
|
||||||
|
Reaming3FlowRateUp = 5,
|
||||||
|
Reaming2NumberOfRepetitions = 6,
|
||||||
|
Reaming2ROPUp = 7,
|
||||||
|
Reaming2StopPointOffBottom = 1,
|
||||||
|
Reaming3Interval = 2,
|
||||||
|
Reaming3ROPUp = 3,
|
||||||
|
Reaming3StopPointOffBottom = 4,
|
||||||
|
SetpointsSlackingOff = 5
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationReamingRotor GetByNote(DbSet<ProcessMapPlanOperationReamingRotor> dbSet, ProcessMapPlanOperationReamingRotorDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationReamingRotorDto GetByNote(IEnumerable<ProcessMapPlanOperationReamingRotorDto> dtos, ProcessMapPlanOperationReamingRotorDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationReamingRotor? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,131 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план проработка для слайда
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationReamingSlideControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationReamingSlide, ProcessMapPlanOperationReamingSlideDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationReamingSlideControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingSlide")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationReamingSlideDto dto = new ProcessMapPlanOperationReamingSlideDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
SetpointsSlackingOff = 1,
|
||||||
|
Reaming3StopPointOffBottom = 2,
|
||||||
|
Reaming3ROPUp = 3,
|
||||||
|
Reaming3Interval = 4,
|
||||||
|
Reaming2StopPointOffBottom = 5,
|
||||||
|
Reaming2ROPUp = 6,
|
||||||
|
Reaming2NumberOfRepetitions = 7,
|
||||||
|
Reaming3FlowRateUp = 8,
|
||||||
|
Reaming2FlowRateUp = 9,
|
||||||
|
Reaming1StopPointOffBottom = 1,
|
||||||
|
Reaming1ROPUp = 1,
|
||||||
|
Reaming1Interval = 2,
|
||||||
|
DifferentialPressure = 3,
|
||||||
|
MaxPressure = 4,
|
||||||
|
MaxTorque = 5,
|
||||||
|
Note = "1",
|
||||||
|
Reaming1FlowRateDown = 6,
|
||||||
|
Reaming1FlowRateUp = 7,
|
||||||
|
Reaming1NumberOfRepetitions = 8,
|
||||||
|
Reaming1ROPDown = 9,
|
||||||
|
Reaming1RPMDown = 1,
|
||||||
|
Reaming1RPMUp = 1,
|
||||||
|
Reaming2FlowRateDown = 2,
|
||||||
|
Reaming2Interval = 3,
|
||||||
|
Reaming2ROPDown = 3,
|
||||||
|
Reaming2RPMDown = 4,
|
||||||
|
Reaming2RPMUp = 5,
|
||||||
|
Reaming3FlowRateDown = 6,
|
||||||
|
Reaming3NumberOfRepetitions = 3,
|
||||||
|
Reaming3ROPDown = 4,
|
||||||
|
Reaming3RPMDown = 5,
|
||||||
|
Reaming3RPMUp = 6,
|
||||||
|
SetpointsTight = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationReamingSlide entity = new ProcessMapPlanOperationReamingSlide()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
SetpointsSlackingOff = 1,
|
||||||
|
Reaming3StopPointOffBottom = 2,
|
||||||
|
Reaming3ROPUp = 3,
|
||||||
|
Reaming3Interval = 4,
|
||||||
|
Reaming2StopPointOffBottom = 5,
|
||||||
|
Reaming2ROPUp = 6,
|
||||||
|
Reaming2NumberOfRepetitions = 7,
|
||||||
|
Reaming3FlowRateUp = 8,
|
||||||
|
Reaming2FlowRateUp = 9,
|
||||||
|
Reaming1StopPointOffBottom = 1,
|
||||||
|
Reaming1ROPUp = 1,
|
||||||
|
Reaming1Interval = 2,
|
||||||
|
DifferentialPressure = 3,
|
||||||
|
MaxPressure = 4,
|
||||||
|
MaxTorque = 5,
|
||||||
|
Note = "1",
|
||||||
|
Reaming1FlowRateDown = 6,
|
||||||
|
Reaming1FlowRateUp = 7,
|
||||||
|
Reaming1NumberOfRepetitions = 8,
|
||||||
|
Reaming1ROPDown = 9,
|
||||||
|
Reaming1RPMDown = 1,
|
||||||
|
Reaming1RPMUp = 1,
|
||||||
|
Reaming2FlowRateDown = 2,
|
||||||
|
Reaming2Interval = 3,
|
||||||
|
Reaming2ROPDown = 3,
|
||||||
|
Reaming2RPMDown = 4,
|
||||||
|
Reaming2RPMUp = 5,
|
||||||
|
Reaming3FlowRateDown = 6,
|
||||||
|
Reaming3NumberOfRepetitions = 3,
|
||||||
|
Reaming3ROPDown = 4,
|
||||||
|
Reaming3RPMDown = 5,
|
||||||
|
Reaming3RPMUp = 6,
|
||||||
|
SetpointsTight = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationReamingSlide GetByNote(DbSet<ProcessMapPlanOperationReamingSlide> dbSet, ProcessMapPlanOperationReamingSlideDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationReamingSlideDto GetByNote(IEnumerable<ProcessMapPlanOperationReamingSlideDto> dtos, ProcessMapPlanOperationReamingSlideDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationReamingSlide? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,73 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план выход на режим
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationSwitchModeControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationSwitchMode, ProcessMapPlanOperationSwitchModeDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationSwitchModeControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationSwitchMode")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationSwitchModeDto dto = new ProcessMapPlanOperationSwitchModeDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
Comment = 1,
|
||||||
|
ExitTimeConsumption = 2,
|
||||||
|
ConsumptionFlowRate = 3,
|
||||||
|
PressureLimitMax = 4,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationSwitchMode entity = new ProcessMapPlanOperationSwitchMode()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
Comment = 1,
|
||||||
|
ExitTimeConsumption = 2,
|
||||||
|
ConsumptionFlowRate = 3,
|
||||||
|
PressureLimitMax = 4,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationSwitchMode GetByNote(DbSet<ProcessMapPlanOperationSwitchMode> dbSet, ProcessMapPlanOperationSwitchModeDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationSwitchModeDto GetByNote(IEnumerable<ProcessMapPlanOperationSwitchModeDto> dtos, ProcessMapPlanOperationSwitchModeDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationSwitchMode? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план выключение насоса
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationSwitchPumpControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationSwitchPump, ProcessMapPlanOperationSwitchPumpDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationSwitchPumpControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationSwitchPump")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationSwitchPumpDto dto = new ProcessMapPlanOperationSwitchPumpDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
Duration = 1,
|
||||||
|
ResidualPressureLimit = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationSwitchPump entity = new ProcessMapPlanOperationSwitchPump()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
Duration = 1,
|
||||||
|
ResidualPressureLimit = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationSwitchPump GetByNote(DbSet<ProcessMapPlanOperationSwitchPump> dbSet, ProcessMapPlanOperationSwitchPumpDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationSwitchPumpDto GetByNote(IEnumerable<ProcessMapPlanOperationSwitchPumpDto> dtos, ProcessMapPlanOperationSwitchPumpDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationSwitchPump? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план выставление
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanOperationTFOrientationControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationTFOrientation, ProcessMapPlanOperationTFOrientationDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanOperationTFOrientationControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationTFOrientation")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanOperationTFOrientationDto dto = new ProcessMapPlanOperationTFOrientationDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
DifferentialPressure = 1,
|
||||||
|
Reaming1NumberOfRepetitions = 1,
|
||||||
|
Reaming1StopPointOffBottom = 1,
|
||||||
|
Reaming1ROPUp = 1,
|
||||||
|
Reaming1ROPDown = 1,
|
||||||
|
Reaming1Interval = 1,
|
||||||
|
Reaming1FlowRateUp = 1,
|
||||||
|
Reaming1FlowRateDown = 1,
|
||||||
|
SetpointsSlackingOff = 1,
|
||||||
|
MaxPressure = 1,
|
||||||
|
MaxTorque = 1,
|
||||||
|
planTF = 1,
|
||||||
|
SetpointsTight = 1,
|
||||||
|
Spring = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanOperationTFOrientation entity = new ProcessMapPlanOperationTFOrientation()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
DifferentialPressure = 1,
|
||||||
|
Reaming1NumberOfRepetitions = 1,
|
||||||
|
Reaming1StopPointOffBottom = 1,
|
||||||
|
Reaming1ROPUp = 1,
|
||||||
|
Reaming1ROPDown = 1,
|
||||||
|
Reaming1Interval = 1,
|
||||||
|
Reaming1FlowRateUp = 1,
|
||||||
|
Reaming1FlowRateDown = 1,
|
||||||
|
SetpointsSlackingOff = 1,
|
||||||
|
MaxPressure = 1,
|
||||||
|
MaxTorque = 1,
|
||||||
|
planTF = 1,
|
||||||
|
SetpointsTight = 1,
|
||||||
|
Spring = 1
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationTFOrientation GetByNote(DbSet<ProcessMapPlanOperationTFOrientation> dbSet, ProcessMapPlanOperationTFOrientationDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationTFOrientationDto GetByNote(IEnumerable<ProcessMapPlanOperationTFOrientationDto> dtos, ProcessMapPlanOperationTFOrientationDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanOperationTFOrientation? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,67 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMaps;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
||||||
|
using AsbCloudWebApi.IntegrationTests;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Xunit;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план записи статического замера
|
||||||
|
/// </summary>
|
||||||
|
public class ProcessMapPlanSurveyControllerTest :
|
||||||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanSurvey, ProcessMapPlanSurveyDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanSurveyControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanSurvey")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
private readonly ProcessMapPlanSurveyDto dto = new ProcessMapPlanSurveyDto()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthStart = 1,
|
||||||
|
DepthEnd = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
MeasurementRecordingTime = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
private readonly ProcessMapPlanSurvey entity = new ProcessMapPlanSurvey()
|
||||||
|
{
|
||||||
|
IdWell = 1,
|
||||||
|
DepthEnd = 10,
|
||||||
|
DepthStart = 2,
|
||||||
|
Id = 0,
|
||||||
|
IdWellSectionType = 1,
|
||||||
|
IdAuthor = 1,
|
||||||
|
IdEditor = 1,
|
||||||
|
Creation = DateTimeOffset.UtcNow,
|
||||||
|
MeasurementRecordingTime = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async Task Get_actual_returns_success()
|
||||||
|
{
|
||||||
|
await Get(entity, dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanSurvey GetByNote(DbSet<ProcessMapPlanSurvey> dbSet, ProcessMapPlanSurveyDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanSurveyDto GetByNote(IEnumerable<ProcessMapPlanSurveyDto> dtos, ProcessMapPlanSurveyDto dto)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ProcessMapPlanSurvey? GetByWellId()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user