From 820e002892567394f93f3d3ee0510a6b0e781c41 Mon Sep 17 00:00:00 2001 From: devinleighsmith Date: Wed, 18 Dec 2024 16:34:01 -0800 Subject: [PATCH] fix test compilation error. --- .../tests/unit/api/Services/AcquisitionFileServiceTest.cs | 2 +- .../tests/unit/api/Services/DispositionFileServiceTest.cs | 2 +- source/backend/tests/unit/api/Services/LeaseServiceTest.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/backend/tests/unit/api/Services/AcquisitionFileServiceTest.cs b/source/backend/tests/unit/api/Services/AcquisitionFileServiceTest.cs index ce7303da3f..5369e25725 100644 --- a/source/backend/tests/unit/api/Services/AcquisitionFileServiceTest.cs +++ b/source/backend/tests/unit/api/Services/AcquisitionFileServiceTest.cs @@ -1412,7 +1412,7 @@ public void UpdateProperties_MatchProperties_Success_NoInternalId() userRepository.Setup(x => x.GetUserInfoByKeycloakUserId(It.IsAny())).Returns(EntityHelper.CreateUser(1, Guid.NewGuid(), "Test", regionCode: 1)); var propertyService = this._helper.GetService>(); - propertyService.Setup(x => x.UpdateLocation(It.IsAny(), ref It.Ref.IsAny, It.IsAny>())); + propertyService.Setup(x => x.UpdateLocation(It.IsAny(), ref It.Ref.IsAny, It.IsAny>(), false)); var solver = this._helper.GetService>(); solver.Setup(x => x.CanEditProperties(It.IsAny())).Returns(true); diff --git a/source/backend/tests/unit/api/Services/DispositionFileServiceTest.cs b/source/backend/tests/unit/api/Services/DispositionFileServiceTest.cs index 5a8533b45c..3672d5bf98 100644 --- a/source/backend/tests/unit/api/Services/DispositionFileServiceTest.cs +++ b/source/backend/tests/unit/api/Services/DispositionFileServiceTest.cs @@ -1029,7 +1029,7 @@ public void UpdateProperties_MatchProperties_Success_NoInternalId() userRepository.Setup(x => x.GetUserInfoByKeycloakUserId(It.IsAny())).Returns(EntityHelper.CreateUser(1, Guid.NewGuid(), "Test", regionCode: 1)); var propertyService = this._helper.GetService>(); - propertyService.Setup(x => x.UpdateLocation(It.IsAny(), ref It.Ref.IsAny, It.IsAny>())); + propertyService.Setup(x => x.UpdateLocation(It.IsAny(), ref It.Ref.IsAny, It.IsAny>(), false)); propertyService.Setup(x => x.UpdateFilePropertyLocation(It.IsAny(), It.IsAny())); // Act diff --git a/source/backend/tests/unit/api/Services/LeaseServiceTest.cs b/source/backend/tests/unit/api/Services/LeaseServiceTest.cs index 8b7823decd..fccfdbaf4e 100644 --- a/source/backend/tests/unit/api/Services/LeaseServiceTest.cs +++ b/source/backend/tests/unit/api/Services/LeaseServiceTest.cs @@ -711,7 +711,7 @@ public void UpdateProperties_MatchProperties_Success_NoInternalId() userRepository.Setup(x => x.GetByKeycloakUserId(It.IsAny())).Returns(EntityHelper.CreateUser("Test")); var propertyService = this._helper.GetService>(); - propertyService.Setup(x => x.UpdateLocation(It.IsAny(), ref It.Ref.IsAny, It.IsAny>())); + propertyService.Setup(x => x.UpdateLocation(It.IsAny(), ref It.Ref.IsAny, It.IsAny>(), false)); // Act var updatedLease = service.Update(lease, new List() { UserOverrideCode.AddLocationToProperty });