Skip to content

Commit

Permalink
fix: sqs handler name to match request
Browse files Browse the repository at this point in the history
  • Loading branch information
rikdepeuter authored and ArneD committed Aug 30, 2024
1 parent c356550 commit da579ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@
{
using System.Collections.Generic;
using System.Linq;
using Abstractions.Convertors;
using Abstractions.SqsRequests;
using Be.Vlaanderen.Basisregisters.GrAr.Common.Oslo.Extensions;
using Be.Vlaanderen.Basisregisters.Sqs;
using Be.Vlaanderen.Basisregisters.Sqs.Handlers;
using Consumer;
using Microsoft.EntityFrameworkCore;
using TicketingService.Abstractions;

public class ProposeStreetNameForMunicipalityMergerHandler : SqsHandler<ProposeStreetNamesForMunicipalityMergerSqsRequest>
public class ProposeStreetNamesForMunicipalityMergerHandler : SqsHandler<ProposeStreetNamesForMunicipalityMergerSqsRequest>
{
private const string Action = "ProposeStreetNameForMunicipalityMerger";
private const string Action = "ProposeStreetNamesForMunicipalityMerger";
private readonly ConsumerContext _consumerContext;

public ProposeStreetNameForMunicipalityMergerHandler(
public ProposeStreetNamesForMunicipalityMergerHandler(
ISqsQueue sqsQueue,
ITicketing ticketing,
ITicketingUrl ticketingUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task ThenTicketWithLocationIsCreated()

var sqsQueue = new Mock<ISqsQueue>();

var sut = new ProposeStreetNameForMunicipalityMergerHandler(
var sut = new ProposeStreetNamesForMunicipalityMergerHandler(
sqsQueue.Object,
ticketingMock.Object,
ticketingUrl,
Expand All @@ -68,7 +68,7 @@ public async Task ThenTicketWithLocationIsCreated()
public void ForNotExistingMunicipality_ThrowsAggregateIdNotFound()
{
// Arrange
var sut = new ProposeStreetNameForMunicipalityMergerHandler(
var sut = new ProposeStreetNamesForMunicipalityMergerHandler(
Mock.Of<ISqsQueue>(),
Mock.Of<ITicketing>(),
Mock.Of<ITicketingUrl>(),
Expand Down

0 comments on commit da579ce

Please sign in to comment.