using AsbCloudApp.Data.ProcessMaps.Operations; using AsbCloudDb.Model.ProcessMapPlan.Operations; using AsbCloudWebApi.IntegrationTests; using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan; using Microsoft.EntityFrameworkCore; using Xunit; namespace AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan.Operations; /// <summary> /// РТК план выход на плановый расход /// </summary> public class ProcessMapPlanSwitchingToTheModeControllerTest : ProcessMapPlanBaseControllerTest<ProcessMapPlanSwitchingToTheMode, ProcessMapPlanSwitchingToTheModeDto> { public ProcessMapPlanSwitchingToTheModeControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanSwitchingToTheMode") { } private readonly ProcessMapPlanSwitchingToTheModeDto dto = new ProcessMapPlanSwitchingToTheModeDto() { IdWell = 1, DepthStart = 1, DepthEnd = 2, Id = 0, IdWellSectionType = 1, FlowRate = 1, PressureMax = 1, RampTime = 1, Note = "10" }; private readonly ProcessMapPlanSwitchingToTheMode entity = new ProcessMapPlanSwitchingToTheMode() { IdWell = 1, DepthEnd = 10, DepthStart = 2, Id = 0, IdWellSectionType = 1, IdAuthor = 1, IdEditor = 1, Creation = DateTimeOffset.UtcNow, FlowRate = 1, PressureMax = 1, RampTime = 1, Note = "10" }; [Fact] public async Task Get_actual_returns_success() { await Get(entity, dto); } protected override ProcessMapPlanSwitchingToTheMode GetByNote(DbSet<ProcessMapPlanSwitchingToTheMode> dbSet, ProcessMapPlanSwitchingToTheModeDto dto) { throw new NotImplementedException(); } protected override ProcessMapPlanSwitchingToTheModeDto GetByNote(IEnumerable<ProcessMapPlanSwitchingToTheModeDto> dtos, ProcessMapPlanSwitchingToTheModeDto dto) { throw new NotImplementedException(); } protected override ProcessMapPlanSwitchingToTheMode? GetByWellId() { throw new NotImplementedException(); } }