DD.WellWorkover.Cloud/AsbCloudWebApi.IntegrationTests/Controllers/ProcessMapPlan/Operations/ProcessMapPlanReamingRotorControllerTest.cs

93 lines
2.9 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;
2024-06-30 12:19:37 +05:00
namespace AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan.Operations;
/// <summary>
/// РТК план проработка для ротора
/// </summary>
2024-06-30 12:19:37 +05:00
public class ProcessMapPlanReamingRotorControllerTest :
ProcessMapPlanBaseControllerTest<ProcessMapPlanReamingRotor, ProcessMapPlanReamingRotorDto>
{
2024-06-30 12:19:37 +05:00
public ProcessMapPlanReamingRotorControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingRotor")
{
}
2024-06-30 12:19:37 +05:00
private readonly ProcessMapPlanReamingRotorDto dto = new ProcessMapPlanReamingRotorDto()
{
IdWell = 1,
DepthStart = 1,
DepthEnd = 2,
Id = 0,
IdWellSectionType = 1,
DifferentialPressure = 2,
Note = "5",
Reaming1FlowRateDown = 7,
Reaming2FlowRateDown = 8,
Reaming3FlowRateDown = 9,
Reaming1FlowRateUp = 10,
Reaming1Interval = 11,
Reaming2Interval = 12,
Reaming1StopPointOffBottom = 3,
Reaming2FlowRateUp = 4,
Reaming3FlowRateUp = 5,
Reaming2StopPointOffBottom = 1,
Reaming3Interval = 2,
Reaming3StopPointOffBottom = 4,
};
2024-06-30 12:19:37 +05:00
private readonly ProcessMapPlanReamingRotor entity = new ProcessMapPlanReamingRotor()
{
IdWell = 1,
DepthEnd = 10,
DepthStart = 2,
Id = 0,
IdWellSectionType = 1,
IdAuthor = 1,
IdEditor = 1,
Creation = DateTimeOffset.UtcNow,
DifferentialPressure = 2,
Note = "5",
Reaming1FlowRateDown = 7,
Reaming2FlowRateDown = 8,
Reaming3FlowRateDown = 9,
Reaming1FlowRateUp = 10,
Reaming1Interval = 11,
Reaming2Interval = 12,
Reaming1StopPointOffBottom = 3,
Reaming2FlowRateUp = 4,
Reaming3FlowRateUp = 5,
Reaming2StopPointOffBottom = 1,
Reaming3Interval = 2,
Reaming3StopPointOffBottom = 4,
};
[Fact]
public async Task Get_actual_returns_success()
{
await Get(entity, dto);
}
2024-06-30 12:19:37 +05:00
protected override ProcessMapPlanReamingRotor GetByNote(DbSet<ProcessMapPlanReamingRotor> dbSet, ProcessMapPlanReamingRotorDto dto)
{
throw new NotImplementedException();
}
2024-06-30 12:19:37 +05:00
protected override ProcessMapPlanReamingRotorDto GetByNote(IEnumerable<ProcessMapPlanReamingRotorDto> dtos, ProcessMapPlanReamingRotorDto dto)
{
throw new NotImplementedException();
}
2024-06-30 12:19:37 +05:00
protected override ProcessMapPlanReamingRotor? GetByWellId()
{
throw new NotImplementedException();
}
}