forked from ddrilling/AsbCloudServer
44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
|
using AsbCloudApp.Data;
|
|||
|
using AsbCloudApp.Data.SAUB;
|
|||
|
using AsbCloudApp.Repositories;
|
|||
|
using AsbCloudApp.Requests;
|
|||
|
using AsbCloudApp.Services;
|
|||
|
using AsbCloudInfrastructure.Repository;
|
|||
|
using AsbCloudInfrastructure.Services.SAUB;
|
|||
|
using NSubstitute;
|
|||
|
using Org.BouncyCastle.Asn1.Ocsp;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using Xunit;
|
|||
|
|
|||
|
namespace AsbCloudWebApi.Tests.ServicesTests
|
|||
|
{
|
|||
|
public class WellboreServiceTest
|
|||
|
{
|
|||
|
|
|||
|
public WellboreServiceTest()
|
|||
|
{
|
|||
|
var wellService = Substitute.For<IWellService>();
|
|||
|
wellService.GetAsync(Arg.Any<WellRequest>(), Arg.Any<CancellationToken>())
|
|||
|
.Returns(Enumerable.Empty<WellDto>());
|
|||
|
|
|||
|
var wellOperationRepository = Substitute.For<IWellOperationRepository>();
|
|||
|
wellOperationRepository.GetSectionsAsync(Arg.Any<IEnumerable<int>>(), Arg.Any<CancellationToken>())
|
|||
|
.Returns(Enumerable.Empty<SectionByOperationsDto>());
|
|||
|
|
|||
|
var telemetryDataCache = Substitute.For<TelemetryDataCache<TelemetryDataSaubDto>>();
|
|||
|
telemetryDataCache.GetOrDefaultFirstLast(Arg.Any<int>());
|
|||
|
}
|
|||
|
|
|||
|
[Fact]
|
|||
|
public async Task GetWellboresAsync()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|