Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit bdcab37

Browse files
committed
Fix OrderPaymentSuccededIntergrationEvent naming rule
1 parent 3bdf3eb commit bdcab37

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
using System;
1414
using System.Threading.Tasks;
1515

16-
public class OrderPaymentSuccededIntegrationEventHandler :
17-
IIntegrationEventHandler<OrderPaymentSuccededIntegrationEvent>
16+
public class OrderPaymentSucceededIntegrationEventHandler :
17+
IIntegrationEventHandler<OrderPaymentSucceededIntegrationEvent>
1818
{
1919
private readonly IMediator _mediator;
20-
private readonly ILogger<OrderPaymentSuccededIntegrationEventHandler> _logger;
20+
private readonly ILogger<OrderPaymentSucceededIntegrationEventHandler> _logger;
2121

22-
public OrderPaymentSuccededIntegrationEventHandler(
22+
public OrderPaymentSucceededIntegrationEventHandler(
2323
IMediator mediator,
24-
ILogger<OrderPaymentSuccededIntegrationEventHandler> logger)
24+
ILogger<OrderPaymentSucceededIntegrationEventHandler> logger)
2525
{
2626
_mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
2727
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
2828
}
2929

30-
public async Task Handle(OrderPaymentSuccededIntegrationEvent @event)
30+
public async Task Handle(OrderPaymentSucceededIntegrationEvent @event)
3131
{
3232
using (LogContext.PushProperty("IntegrationEventContext", $"{@event.Id}-{Program.AppName}"))
3333
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
{
33
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
44

5-
public class OrderPaymentSuccededIntegrationEvent : IntegrationEvent
5+
public class OrderPaymentSucceededIntegrationEvent : IntegrationEvent
66
{
77
public int OrderId { get; }
88

9-
public OrderPaymentSuccededIntegrationEvent(int orderId) => OrderId = orderId;
9+
public OrderPaymentSucceededIntegrationEvent(int orderId) => OrderId = orderId;
1010
}
1111
}

src/Services/Ordering/Ordering.API/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private void ConfigureEventBus(IApplicationBuilder app)
122122
eventBus.Subscribe<OrderStockConfirmedIntegrationEvent, IIntegrationEventHandler<OrderStockConfirmedIntegrationEvent>>();
123123
eventBus.Subscribe<OrderStockRejectedIntegrationEvent, IIntegrationEventHandler<OrderStockRejectedIntegrationEvent>>();
124124
eventBus.Subscribe<OrderPaymentFailedIntegrationEvent, IIntegrationEventHandler<OrderPaymentFailedIntegrationEvent>>();
125-
eventBus.Subscribe<OrderPaymentSuccededIntegrationEvent, IIntegrationEventHandler<OrderPaymentSuccededIntegrationEvent>>();
125+
eventBus.Subscribe<OrderPaymentSucceededIntegrationEvent, IIntegrationEventHandler<OrderPaymentSucceededIntegrationEvent>>();
126126
}
127127

128128
protected virtual void ConfigureAuth(IApplicationBuilder app)

src/Services/Payment/Payment.API/IntegrationEvents/EventHandling/OrderStatusChangedToStockConfirmedIntegrationEventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public async Task Handle(OrderStatusChangedToStockConfirmedIntegrationEvent @eve
4343

4444
if (_settings.PaymentSucceded)
4545
{
46-
orderPaymentIntegrationEvent = new OrderPaymentSuccededIntegrationEvent(@event.OrderId);
46+
orderPaymentIntegrationEvent = new OrderPaymentSucceededIntegrationEvent(@event.OrderId);
4747
}
4848
else
4949
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
{
33
using Microsoft.eShopOnContainers.BuildingBlocks.EventBus.Events;
44

5-
public class OrderPaymentSuccededIntegrationEvent : IntegrationEvent
5+
public class OrderPaymentSucceededIntegrationEvent : IntegrationEvent
66
{
77
public int OrderId { get; }
88

9-
public OrderPaymentSuccededIntegrationEvent(int orderId) => OrderId = orderId;
9+
public OrderPaymentSucceededIntegrationEvent(int orderId) => OrderId = orderId;
1010
}
1111
}

0 commit comments

Comments
 (0)