DD.WellWorkover.Cloud/AsbCloudWebApi.IntegrationTests/Controllers/ProcessMapPlan/ProcessMapPlanOperationReamingSlideControllerTest.cs

131 lines
4.1 KiB
C#
Raw Normal View History

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();
}
}