forked from ddrilling/AsbCloudServer
131 lines
4.0 KiB
C#
131 lines
4.0 KiB
C#
|
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.IntegrationTests.Controllers.ProcessMapPlan.Operations;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// РТК план проработка для слайда
|
|||
|
/// </summary>
|
|||
|
public class ProcessMapPlanReamingSlideControllerTest :
|
|||
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanReamingSlide, ProcessMapPlanReamingSlideDto>
|
|||
|
{
|
|||
|
public ProcessMapPlanReamingSlideControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingSlide")
|
|||
|
{
|
|||
|
}
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|