Skip to content

Commit

Permalink
Remove unused borehole controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehats committed Dec 18, 2024
1 parent 0d60a70 commit 6848140
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/api/Controllers/ImportControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class ImportControllerTest
private const int MaxLayerSeedId = 7029999;

private BdmsContext context;
private BoreholeController boreholeController;
private ImportController controller;
private Mock<IHttpClientFactory> httpClientFactoryMock;
private Mock<ILogger<ImportController>> loggerMock;
Expand Down Expand Up @@ -57,11 +56,6 @@ public void TestInitialize()
contextAccessorMock.Object.HttpContext.User = new ClaimsPrincipal(new ClaimsIdentity(new[] { new Claim(ClaimTypes.NameIdentifier, context.Users.FirstOrDefault().SubjectId) }));
var boreholeFileCloudService = new BoreholeFileCloudService(context, configuration, loggerBoreholeFileCloudService.Object, contextAccessorMock.Object, s3ClientMock);

var boreholeLockServiceMock = new Mock<IBoreholeLockService>(MockBehavior.Strict);
boreholeLockServiceMock
.Setup(x => x.IsBoreholeLockedAsync(It.IsAny<int?>(), It.IsAny<string?>()))
.ReturnsAsync(false);
boreholeController = new BoreholeController(context, new Mock<ILogger<BoreholeController>>().Object, boreholeLockServiceMock.Object) { ControllerContext = GetControllerContextAdmin() };
controller = new ImportController(context, loggerMock.Object, locationService, coordinateService, boreholeFileCloudService) { ControllerContext = GetControllerContextAdmin() };
}

Expand Down

0 comments on commit 6848140

Please sign in to comment.