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; /// /// РТК план проработка для ротора /// public class ProcessMapPlanOperationReamingRotorControllerTest : ProcessMapPlanBaseControllerTest { public ProcessMapPlanOperationReamingRotorControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingRotor") { } private readonly ProcessMapPlanOperationReamingRotorDto dto = new ProcessMapPlanOperationReamingRotorDto() { IdWell = 1, DepthStart = 1, DepthEnd = 2, Id = 0, IdWellSectionType = 1, DifferentialPressure = 2, MaxPressure = 3, MaxTorque = 4, Note = "5", Reaming3NumberOfRepetitions = 5, SetpointsTight = 6, Reaming1FlowRateDown = 7, Reaming2FlowRateDown = 8, Reaming3FlowRateDown = 9, Reaming1FlowRateUp = 10, Reaming1Interval = 11, Reaming2Interval = 12, Reaming1NumberOfRepetitions = 1, Reaming1ROPDown = 13, Reaming2ROPDown = 14, Reaming3ROPDown = 15, Reaming1ROPUp = 16, Reaming1RPMDown = 17, Reaming2RPMDown = 18, Reaming3RPMDown = 19, Reaming1RPMUp = 20, Reaming2RPMUp = 1, Reaming3RPMUp = 2, Reaming1StopPointOffBottom = 3, Reaming2FlowRateUp = 4, Reaming3FlowRateUp = 5, Reaming2NumberOfRepetitions = 6, Reaming2ROPUp = 7, Reaming2StopPointOffBottom = 1, Reaming3Interval = 2, Reaming3ROPUp = 3, Reaming3StopPointOffBottom = 4, SetpointsSlackingOff = 5 }; private readonly ProcessMapPlanOperationReamingRotor entity = new ProcessMapPlanOperationReamingRotor() { IdWell = 1, DepthEnd = 10, DepthStart = 2, Id = 0, IdWellSectionType = 1, IdAuthor = 1, IdEditor = 1, Creation = DateTimeOffset.UtcNow, DifferentialPressure = 2, MaxPressure = 3, MaxTorque = 4, Note = "5", Reaming3NumberOfRepetitions = 5, SetpointsTight = 6, Reaming1FlowRateDown = 7, Reaming2FlowRateDown = 8, Reaming3FlowRateDown = 9, Reaming1FlowRateUp = 10, Reaming1Interval = 11, Reaming2Interval = 12, Reaming1NumberOfRepetitions = 1, Reaming1ROPDown = 13, Reaming2ROPDown = 14, Reaming3ROPDown = 15, Reaming1ROPUp = 16, Reaming1RPMDown = 17, Reaming2RPMDown = 18, Reaming3RPMDown = 19, Reaming1RPMUp = 20, Reaming2RPMUp = 1, Reaming3RPMUp = 2, Reaming1StopPointOffBottom = 3, Reaming2FlowRateUp = 4, Reaming3FlowRateUp = 5, Reaming2NumberOfRepetitions = 6, Reaming2ROPUp = 7, Reaming2StopPointOffBottom = 1, Reaming3Interval = 2, Reaming3ROPUp = 3, Reaming3StopPointOffBottom = 4, SetpointsSlackingOff = 5 }; [Fact] public async Task Get_actual_returns_success() { await Get(entity, dto); } protected override ProcessMapPlanOperationReamingRotor GetByNote(DbSet dbSet, ProcessMapPlanOperationReamingRotorDto dto) { throw new NotImplementedException(); } protected override ProcessMapPlanOperationReamingRotorDto GetByNote(IEnumerable dtos, ProcessMapPlanOperationReamingRotorDto dto) { throw new NotImplementedException(); } protected override ProcessMapPlanOperationReamingRotor? GetByWellId() { throw new NotImplementedException(); } }