46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
|
using Persistence.Repository.Data;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace Persistence.IntegrationTests.Controllers;
|
|||
|
public class DataSaubControllerTest : TimeSeriesBaseControllerTest<DataSaubDto>
|
|||
|
{
|
|||
|
private readonly DataSaubDto dto = new DataSaubDto()
|
|||
|
{
|
|||
|
AxialLoad = 1,
|
|||
|
BitDepth = 2,
|
|||
|
BlockPosition = 3,
|
|||
|
BlockSpeed = 4,
|
|||
|
Date = DateTimeOffset.Now,
|
|||
|
Flow = 5,
|
|||
|
HookWeight = 6,
|
|||
|
Id = 7,
|
|||
|
IdFeedRegulator = 8,
|
|||
|
Mode = 9,
|
|||
|
Mse = 10,
|
|||
|
MseState = 11,
|
|||
|
Pressure = 12,
|
|||
|
Pump0Flow = 13,
|
|||
|
Pump1Flow = 14,
|
|||
|
Pump2Flow = 15,
|
|||
|
RotorSpeed = 16,
|
|||
|
RotorTorque = 17,
|
|||
|
User = string.Empty,
|
|||
|
WellDepth = 18,
|
|||
|
};
|
|||
|
|
|||
|
public DataSaubControllerTest(WebAppFactoryFixture factory) : base(factory)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
[Fact]
|
|||
|
public async Task InsertRange_returns_success()
|
|||
|
{
|
|||
|
await InsertRangeSuccess(dto);
|
|||
|
}
|
|||
|
}
|