Skip to content

Commit

Permalink
test(api): update tests to remove delivery points
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Sep 4, 2024
1 parent 48d8e52 commit d7a56b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ [new LocatorProperties("http://geocoding.plan", "test", 0)]
result.Status.ShouldBe(StatusCodes.Status200OK);
computeMediator.Verify(x => x.Handle(It.IsAny<AddressParsing.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<ZoneParsing.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<UspsDeliveryPointLocation.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
// computeMediator.Verify(x => x.Handle(It.IsAny<UspsDeliveryPointLocation.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<GeocodePlan.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<Geocode.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<FilterCandidates.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
Expand Down Expand Up @@ -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<AddressParsing.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<ZoneParsing.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<UspsDeliveryPointLocation.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
// computeMediator.Verify(x => x.Handle(It.IsAny<UspsDeliveryPointLocation.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<GeocodePlan.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<Geocode.Computation>(), It.IsAny<CancellationToken>()), Times.Never);
computeMediator.Verify(x => x.Handle(It.IsAny<FilterCandidates.Computation>(), It.IsAny<CancellationToken>()), Times.Never);
Expand Down Expand Up @@ -132,12 +132,12 @@ [new LocatorProperties("http://geocoding.plan", "test", 0)]
result.Status.ShouldBe(StatusCodes.Status404NotFound);
computeMediator.Verify(x => x.Handle(It.IsAny<AddressParsing.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<ZoneParsing.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<UspsDeliveryPointLocation.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
// computeMediator.Verify(x => x.Handle(It.IsAny<UspsDeliveryPointLocation.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<GeocodePlan.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<Geocode.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
computeMediator.Verify(x => x.Handle(It.IsAny<FilterCandidates.Computation>(), It.IsAny<CancellationToken>()), Times.Once);
}
[Fact]
// [Fact]
public async Task Should_return_early_with_delivery_point() {

Check warning on line 141 in test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs

View workflow job for this annotation

GitHub Actions / 🧪 Unit tests

Public method 'Should_return_early_with_delivery_point' on test class 'GeocodeQueryTests' should be marked as a Fact. Reduce the visibility of the method, or add a Fact attribute to the method. (https://xunit.net/xunit.analyzers/rules/xUnit1013)

Check warning on line 141 in test/api.unit.tests/Features/Geocoding/GeocodeQueryTests.cs

View workflow job for this annotation

GitHub Actions / 🧪 Unit tests

Public method 'Should_return_early_with_delivery_point' on test class 'GeocodeQueryTests' should be marked as a Fact. Reduce the visibility of the method, or add a Fact attribute to the method. (https://xunit.net/xunit.analyzers/rules/xUnit1013)
var computeMediator = new Mock<IComputeMediator>();
computeMediator.Setup(x => x.Handle(It.IsAny<AddressParsing.Computation>(), It.IsAny<CancellationToken>()))
Expand Down

0 comments on commit d7a56b2

Please sign in to comment.