2024-06-28 12:13:51 +05:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// РТК план демпфер
|
|
|
|
|
/// </summary>
|
2024-06-29 23:32:34 +05:00
|
|
|
|
public class ProcessMapPlanDamperControllerTest :
|
|
|
|
|
ProcessMapPlanBaseControllerTest<ProcessMapPlanDamper, ProcessMapPlanDamperDto>
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
2024-06-29 23:32:34 +05:00
|
|
|
|
public ProcessMapPlanDamperControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsDamper")
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
|
|
|
|
}
|
2024-06-29 23:32:34 +05:00
|
|
|
|
private readonly ProcessMapPlanDamperDto dto = new ProcessMapPlanDamperDto()
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
|
|
|
|
IdWell = 1,
|
|
|
|
|
DepthStart = 1,
|
|
|
|
|
DepthEnd = 2,
|
|
|
|
|
Id = 0,
|
|
|
|
|
IdWellSectionType = 1,
|
|
|
|
|
Note = "1",
|
|
|
|
|
StickSlip = 1
|
|
|
|
|
};
|
|
|
|
|
|
2024-06-29 23:32:34 +05:00
|
|
|
|
private readonly ProcessMapPlanDamper entity = new ProcessMapPlanDamper()
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
|
|
|
|
IdWell = 1,
|
|
|
|
|
DepthEnd = 10,
|
|
|
|
|
DepthStart = 2,
|
|
|
|
|
Id = 0,
|
|
|
|
|
IdWellSectionType = 1,
|
|
|
|
|
IdAuthor = 1,
|
|
|
|
|
IdEditor = 1,
|
|
|
|
|
Creation = DateTimeOffset.UtcNow,
|
|
|
|
|
Note = "1",
|
|
|
|
|
StickSlip = 1
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Get_actual_returns_success()
|
|
|
|
|
{
|
|
|
|
|
await Get(entity, dto);
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-29 23:32:34 +05:00
|
|
|
|
protected override ProcessMapPlanDamper GetByNote(DbSet<ProcessMapPlanDamper> dbSet, ProcessMapPlanDamperDto dto)
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-29 23:32:34 +05:00
|
|
|
|
protected override ProcessMapPlanDamperDto GetByNote(IEnumerable<ProcessMapPlanDamperDto> dtos, ProcessMapPlanDamperDto dto)
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-29 23:32:34 +05:00
|
|
|
|
protected override ProcessMapPlanDamper? GetByWellId()
|
2024-06-28 12:13:51 +05:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|