2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudApp.Repositories;
|
2024-06-30 00:10:40 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
|
|
|
|
using AsbCloudApp.Services;
|
|
|
|
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
|
|
|
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
|
|
|
|
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
|
|
|
|
|
using AsbCloudWebApi.IntegrationTests;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Xunit;
|
2024-06-30 21:02:55 +05:00
|
|
|
|
using AsbCloudDb.Model.ProcessMapPlan.Operations;
|
|
|
|
|
using AsbCloudApp.Data.ProcessMaps.Operations;
|
2024-06-30 00:10:40 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan.Operations;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// РТК план проработка для слайда
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ProcessMapPlanReamingSlideControllerTest :
|
|
|
|
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanReamingSlide, ProcessMapPlanReamingSlideDto>
|
|
|
|
|
{
|
2024-07-01 12:03:08 +05:00
|
|
|
|
public ProcessMapPlanReamingSlideControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanReamingSlide")
|
2024-06-30 00:10:40 +05:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
private readonly ProcessMapPlanReamingSlideDto dto = new ProcessMapPlanReamingSlideDto()
|
|
|
|
|
{
|
|
|
|
|
IdWell = 1,
|
|
|
|
|
DepthStart = 1,
|
|
|
|
|
DepthEnd = 2,
|
|
|
|
|
Id = 0,
|
|
|
|
|
IdWellSectionType = 1,
|
|
|
|
|
SlackingOff = 1,
|
|
|
|
|
Reaming3StopPointOffBottom = 2,
|
|
|
|
|
Reaming3RopUp = 3,
|
|
|
|
|
Reaming3Interval = 4,
|
|
|
|
|
Reaming2StopPointOffBottom = 5,
|
|
|
|
|
Reaming2RopUp = 6,
|
|
|
|
|
Reaming2RepetitionsCount = 7,
|
|
|
|
|
Reaming3FlowRateUp = 8,
|
|
|
|
|
Reaming2FlowRateUp = 9,
|
|
|
|
|
Reaming1StopPointOffBottom = 1,
|
|
|
|
|
Reaming1RopUp = 1,
|
|
|
|
|
Reaming1Interval = 2,
|
|
|
|
|
DifferentialPressure = 3,
|
|
|
|
|
PressureMax = 4,
|
|
|
|
|
TorqueMax = 5,
|
|
|
|
|
Note = "1",
|
|
|
|
|
Reaming1FlowRateDown = 6,
|
|
|
|
|
Reaming1FlowRateUp = 7,
|
|
|
|
|
Reaming1RepetitionsCount = 8,
|
|
|
|
|
Reaming1RopDown = 9,
|
|
|
|
|
Reaming1RpmDown = 1,
|
|
|
|
|
Reaming1RpmUp = 1,
|
|
|
|
|
Reaming2FlowRateDown = 2,
|
|
|
|
|
Reaming2Interval = 3,
|
|
|
|
|
Reaming2RopDown = 3,
|
|
|
|
|
Reaming2RpmDown = 4,
|
|
|
|
|
Reaming2RpmUp = 5,
|
|
|
|
|
Reaming3FlowRateDown = 6,
|
|
|
|
|
Reaming3RepetitionsCount = 3,
|
|
|
|
|
Reaming3RopDown = 4,
|
|
|
|
|
Reaming3RpmDown = 5,
|
|
|
|
|
Reaming3RpmUp = 6,
|
|
|
|
|
Tight = 1,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
private readonly ProcessMapPlanReamingSlide entity = new ProcessMapPlanReamingSlide()
|
|
|
|
|
{
|
|
|
|
|
IdWell = 1,
|
|
|
|
|
DepthEnd = 10,
|
|
|
|
|
DepthStart = 2,
|
|
|
|
|
Id = 0,
|
|
|
|
|
IdWellSectionType = 1,
|
|
|
|
|
IdAuthor = 1,
|
|
|
|
|
IdEditor = 1,
|
|
|
|
|
Creation = DateTimeOffset.UtcNow,
|
|
|
|
|
SlackingOff = 1,
|
|
|
|
|
Reaming3StopPointOffBottom = 2,
|
|
|
|
|
Reaming3RopUp = 3,
|
|
|
|
|
Reaming3Interval = 4,
|
|
|
|
|
Reaming2StopPointOffBottom = 5,
|
|
|
|
|
Reaming2RopUp = 6,
|
|
|
|
|
Reaming2RepetitionsCount = 7,
|
|
|
|
|
Reaming3FlowRateUp = 8,
|
|
|
|
|
Reaming2FlowRateUp = 9,
|
|
|
|
|
Reaming1StopPointOffBottom = 1,
|
|
|
|
|
Reaming1RopUp = 1,
|
|
|
|
|
Reaming1Interval = 2,
|
|
|
|
|
DifferentialPressure = 3,
|
|
|
|
|
PressureMax = 4,
|
|
|
|
|
TorqueMax = 5,
|
|
|
|
|
Note = "1",
|
|
|
|
|
Reaming1FlowRateDown = 6,
|
|
|
|
|
Reaming1FlowRateUp = 7,
|
|
|
|
|
Reaming1RepetitionsCount = 8,
|
|
|
|
|
Reaming1RopDown = 9,
|
|
|
|
|
Reaming1RpmDown = 1,
|
|
|
|
|
Reaming1RpmUp = 1,
|
|
|
|
|
Reaming2FlowRateDown = 2,
|
|
|
|
|
Reaming2Interval = 3,
|
|
|
|
|
Reaming2RopDown = 3,
|
|
|
|
|
Reaming2RpmDown = 4,
|
|
|
|
|
Reaming2RpmUp = 5,
|
|
|
|
|
Reaming3FlowRateDown = 6,
|
|
|
|
|
Reaming3RepetitionsCount = 3,
|
|
|
|
|
Reaming3RopDown = 4,
|
|
|
|
|
Reaming3RpmDown = 5,
|
|
|
|
|
Reaming3RpmUp = 6,
|
|
|
|
|
Tight = 1,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Get_actual_returns_success()
|
|
|
|
|
{
|
|
|
|
|
await Get(entity, dto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override ProcessMapPlanReamingSlide GetByNote(DbSet<ProcessMapPlanReamingSlide> dbSet, ProcessMapPlanReamingSlideDto dto)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override ProcessMapPlanReamingSlideDto GetByNote(IEnumerable<ProcessMapPlanReamingSlideDto> dtos, ProcessMapPlanReamingSlideDto dto)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override ProcessMapPlanReamingSlide? GetByWellId()
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|