From d7a56b2ec2c134575f20a7070f18215515d66948 Mon Sep 17 00:00:00 2001 From: steveoh Date: Wed, 4 Sep 2024 16:13:50 -0600 Subject: [PATCH] test(api): update tests to remove delivery points --- .../Features/Geocoding/GeocodeQueryTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs b/test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs index f06a8bee..8e3698f0 100644 --- a/test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs +++ b/test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs @@ -53,7 +53,7 @@ [new LocatorProperties("http://geocoding.plan", "test", 0)] result.Status.ShouldBe(StatusCodes.Status200OK); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); - computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); + // computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); @@ -97,7 +97,7 @@ public async Task Should_return_404_when_there_is_no_geocode_plan() { result.Status.ShouldBe(StatusCodes.Status404NotFound); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); - computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); + // computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Never); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Never); @@ -132,12 +132,12 @@ [new LocatorProperties("http://geocoding.plan", "test", 0)] result.Status.ShouldBe(StatusCodes.Status404NotFound); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); - computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); + // computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); computeMediator.Verify(x => x.Handle(It.IsAny(), It.IsAny()), Times.Once); } - [Fact] + // [Fact] public async Task Should_return_early_with_delivery_point() { var computeMediator = new Mock(); computeMediator.Setup(x => x.Handle(It.IsAny(), It.IsAny()))