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

60 lines
1.9 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>
{
public ProcessMapPlanSwitchingToTheModeControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationSwitchingToTheMode")
{
}
private readonly ProcessMapPlanSwitchingToTheModeDto dto = new ProcessMapPlanSwitchingToTheModeDto()
{
IdWell = 1,
DepthStart = 1,
DepthEnd = 2,
Id = 0,
IdWellSectionType = 1,
};
private readonly ProcessMapPlanSwitchingToTheMode entity = new ProcessMapPlanSwitchingToTheMode()
{
IdWell = 1,
DepthEnd = 10,
DepthStart = 2,
Id = 0,
IdWellSectionType = 1,
IdAuthor = 1,
IdEditor = 1,
Creation = DateTimeOffset.UtcNow,
};
[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();
}
}