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;
///
/// РТК план проработка для ротора
///
public class ProcessMapPlanReamingRotorControllerTest :
ProcessMapPlanBaseControllerTest
{
public ProcessMapPlanReamingRotorControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingRotor")
{
}
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,
};
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);
}
protected override ProcessMapPlanReamingRotor GetByNote(DbSet dbSet, ProcessMapPlanReamingRotorDto dto)
{
throw new NotImplementedException();
}
protected override ProcessMapPlanReamingRotorDto GetByNote(IEnumerable dtos, ProcessMapPlanReamingRotorDto dto)
{
throw new NotImplementedException();
}
protected override ProcessMapPlanReamingRotor? GetByWellId()
{
throw new NotImplementedException();
}
}