diff --git a/test/api.unit.tests/Features/Geocoding/AddressSystemFromPlaceTests.cs b/test/api.unit.tests/Features/Geocoding/AddressSystemFromPlaceTests.cs index d460bf64..f75fff53 100644 --- a/test/api.unit.tests/Features/Geocoding/AddressSystemFromPlaceTests.cs +++ b/test/api.unit.tests/Features/Geocoding/AddressSystemFromPlaceTests.cs @@ -7,7 +7,7 @@ namespace api.tests.Features.Geocoding; public class AddressSystemFromPlaceTests { public AddressSystemFromPlaceTests() { var mockDb = new Mock(); - mockDb.Setup(x => x.StringGetAsync(It.Is(p => p.Equals(new RedisKey("place"))), CommandFlags.None)) + mockDb.Setup(x => x.StringGetAsync(It.Is(p => p.Equals(new RedisKey("map/place/key"))), CommandFlags.None)) .ReturnsAsync(new RedisValue("grid,0")); var mockConnection = new Mock(); @@ -32,7 +32,7 @@ public async Task Should_return_empty_when_zip_is_null() { [Fact] public async Task Should_return_empty_when_zip_not_found() { - var request = new AddressSystemFromPlace.Computation("other place"); + var request = new AddressSystemFromPlace.Computation("key-not-found"); var result = await _handler.Handle(request, CancellationToken.None); result.ShouldBeEmpty(); @@ -40,7 +40,7 @@ public async Task Should_return_empty_when_zip_not_found() { [Fact] public async Task Should_return_grid_from_place() { - var request = new AddressSystemFromPlace.Computation("place"); + var request = new AddressSystemFromPlace.Computation("key"); var result = await _handler.Handle(request, CancellationToken.None); result.Count.ShouldBe(1);