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

68 lines
2.1 KiB
C#
Raw Normal View History

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>
{
2024-07-01 12:03:08 +05:00
public ProcessMapPlanSwitchingToTheModeControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanSwitchingToTheMode")
{
}
private readonly ProcessMapPlanSwitchingToTheModeDto dto = new ProcessMapPlanSwitchingToTheModeDto()
{
IdWell = 1,
DepthStart = 1,
DepthEnd = 2,
Id = 0,
IdWellSectionType = 1,
2024-07-01 12:03:08 +05:00
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,
2024-07-01 12:03:08 +05:00
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();
}
}