forked from ddrilling/AsbCloudServer
79 lines
2.4 KiB
C#
79 lines
2.4 KiB
C#
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>
|
||
public class ProcessMapPlanFunctionsOscillationControllerTest :
|
||
ProcessMapPlanBaseControllerTest<ProcessMapPlanFunctionsOscillation, ProcessMapPlanFunctionsOscillationDto>
|
||
{
|
||
public ProcessMapPlanFunctionsOscillationControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanFunctionsOscillation")
|
||
{
|
||
}
|
||
private readonly ProcessMapPlanFunctionsOscillationDto dto = new ProcessMapPlanFunctionsOscillationDto()
|
||
{
|
||
IdWell = 1,
|
||
DepthStart = 1,
|
||
DepthEnd = 2,
|
||
Id = 0,
|
||
IdWellSectionType = 1,
|
||
Mode = true,
|
||
Note = "1",
|
||
OptimalOscillationAngle = 1,
|
||
RPMLeft = 2,
|
||
RPMRight = 3,
|
||
TorqueLimitLeft = 4,
|
||
TorqueLimitRight = 5
|
||
};
|
||
|
||
private readonly ProcessMapPlanFunctionsOscillation entity = new ProcessMapPlanFunctionsOscillation()
|
||
{
|
||
IdWell = 1,
|
||
DepthEnd = 10,
|
||
DepthStart = 2,
|
||
Id = 0,
|
||
IdWellSectionType = 1,
|
||
IdAuthor = 1,
|
||
IdEditor = 1,
|
||
Creation = DateTimeOffset.UtcNow,
|
||
Mode = true,
|
||
Note = "1",
|
||
OptimalOscillationAngle = 1,
|
||
RPMLeft = 2,
|
||
RPMRight = 3,
|
||
TorqueLimitLeft = 4,
|
||
TorqueLimitRight = 5
|
||
};
|
||
|
||
[Fact]
|
||
public async Task Get_actual_returns_success()
|
||
{
|
||
await Get(entity, dto);
|
||
}
|
||
|
||
protected override ProcessMapPlanFunctionsOscillation GetByNote(DbSet<ProcessMapPlanFunctionsOscillation> dbSet, ProcessMapPlanFunctionsOscillationDto dto)
|
||
{
|
||
throw new NotImplementedException();
|
||
}
|
||
|
||
protected override ProcessMapPlanFunctionsOscillationDto GetByNote(IEnumerable<ProcessMapPlanFunctionsOscillationDto> dtos, ProcessMapPlanFunctionsOscillationDto dto)
|
||
{
|
||
throw new NotImplementedException();
|
||
}
|
||
|
||
protected override ProcessMapPlanFunctionsOscillation? GetByWellId()
|
||
{
|
||
throw new NotImplementedException();
|
||
}
|
||
} |