forked from ddrilling/AsbCloudServer
Правки после ревью - 4
This commit is contained in:
parent
1acc94fad8
commit
6046b61ba1
@ -17,8 +17,8 @@ namespace AsbCloudInfrastructure.Services.Trajectory.Export
|
||||
|
||||
public TrajectoryPlanExportService(
|
||||
IWellService wellService,
|
||||
ITrajectoryEditableRepository<TrajectoryGeoPlanDto> plannedTrajectoryService)
|
||||
: base(wellService, plannedTrajectoryService)
|
||||
ITrajectoryEditableRepository<TrajectoryGeoPlanDto> trajectoryPlanService)
|
||||
: base(wellService, trajectoryPlanService)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -130,11 +130,11 @@ public class TrajectoryService
|
||||
private TrajectoryNnbService trajectoryNnbService;
|
||||
|
||||
public TrajectoryService(
|
||||
ITrajectoryEditableRepository<TrajectoryGeoPlanDto> plannedRepository,
|
||||
ITrajectoryEditableRepository<TrajectoryGeoPlanDto> planRepository,
|
||||
ITrajectoryEditableRepository<TrajectoryGeoFactDto> factRepository,
|
||||
ITrajectoryNnbRepository nnbRepository)
|
||||
{
|
||||
trajectoryPlanService = new TrajectoryPlanService(plannedRepository);
|
||||
trajectoryPlanService = new TrajectoryPlanService(planRepository);
|
||||
trajectoryFactService = new TrajectoryFactService(factRepository);
|
||||
trajectoryNnbService = new TrajectoryNnbService(nnbRepository);
|
||||
}
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="UnitTests\Services\Trajectory\Templates\TrajectoryFactManualTemplate.xlsx" />
|
||||
<EmbeddedResource Include="UnitTests\Services\Trajectory\Templates\TrajectoryPlannedTemplate.xlsx" />
|
||||
<EmbeddedResource Include="UnitTests\Services\Trajectory\Templates\TrajectoryPlanTemplate.xlsx" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -94,7 +94,7 @@ namespace AsbCloudWebApi.Tests.UnitTests.Services.Trajectory
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Export_trajectory_planned()
|
||||
public async Task Export_trajectory_plan()
|
||||
{
|
||||
trajectoryPlanRepository.GetAsync(idWell, CancellationToken.None)
|
||||
.Returns(trajectoryPlanRows);
|
||||
|
@ -9,7 +9,7 @@ namespace AsbCloudWebApi.Tests.UnitTests.Services.Trajectory
|
||||
private readonly TrajectoryPlanParserService trajectoryPlanImportService;
|
||||
private readonly TrajectoryFactManualParserService trajectoryFactManualImportService;
|
||||
|
||||
private string usingTemplateFile = "AsbCloudWebApi.Tests.Services.Trajectory.Templates";
|
||||
private string usingTemplateFile = "AsbCloudWebApi.Tests.UnitTests.Services.Trajectory.Templates";
|
||||
|
||||
public TrajectoryImportTest()
|
||||
{
|
||||
@ -18,7 +18,7 @@ namespace AsbCloudWebApi.Tests.UnitTests.Services.Trajectory
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Import_trajectory_planned()
|
||||
public void Import_trajectory_plan()
|
||||
{
|
||||
var stream = System.Reflection.Assembly.GetExecutingAssembly()
|
||||
.GetManifestResourceStream($"{usingTemplateFile}.TrajectoryPlanTemplate.xlsx");
|
||||
|
@ -22,15 +22,15 @@ namespace AsbCloudWebApi.Controllers.Trajectory
|
||||
private readonly TrajectoryService trajectoryVisualizationService;
|
||||
|
||||
public TrajectoryPlanController(IWellService wellService,
|
||||
TrajectoryPlanParserService plannedTrajectoryImportService,
|
||||
TrajectoryPlanExportService plannedTrajectoryExportService,
|
||||
ITrajectoryEditableRepository<TrajectoryGeoPlanDto> plannedTrajectoryRepository,
|
||||
TrajectoryPlanParserService trajectoryPlanImportService,
|
||||
TrajectoryPlanExportService trajectoryPlanExportService,
|
||||
ITrajectoryEditableRepository<TrajectoryGeoPlanDto> trajectoryPlanRepository,
|
||||
TrajectoryService trajectoryVisualizationService)
|
||||
: base(
|
||||
wellService,
|
||||
plannedTrajectoryImportService,
|
||||
plannedTrajectoryExportService,
|
||||
plannedTrajectoryRepository)
|
||||
trajectoryPlanImportService,
|
||||
trajectoryPlanExportService,
|
||||
trajectoryPlanRepository)
|
||||
{
|
||||
fileName = "ЕЦП_шаблон_файла_плановая_траектория.xlsx";
|
||||
this.trajectoryVisualizationService = trajectoryVisualizationService;
|
||||
|
Loading…
Reference in New Issue
Block a user