Fix compiler warnings for unused variables

This commit is contained in:
Reuben Bond 2023-02-24 08:51:19 -08:00 committed by Tarun Jain
parent 0cbd7b24e8
commit 631a64940e
2 changed files with 2 additions and 14 deletions

View File

@ -7,17 +7,6 @@ using Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.Order
public class CreateOrderDraftCommandHandler
: IRequestHandler<CreateOrderDraftCommand, OrderDraftDTO>
{
private readonly IOrderRepository _orderRepository;
private readonly IIdentityService _identityService;
private readonly IMediator _mediator;
// Using DI to inject infrastructure persistence Repositories
public CreateOrderDraftCommandHandler(IMediator mediator, IIdentityService identityService)
{
_identityService = identityService ?? throw new ArgumentNullException(nameof(identityService));
_mediator = mediator ?? throw new ArgumentNullException(nameof(mediator));
}
public Task<OrderDraftDTO> Handle(CreateOrderDraftCommand message, CancellationToken cancellationToken)
{
@ -32,7 +21,6 @@ public class CreateOrderDraftCommandHandler
}
}
public record OrderDraftDTO
{
public IEnumerable<OrderItemDTO> OrderItems { get; init; }

View File

@ -2,8 +2,8 @@
public class ProductPriceChangedIntegrationEventHandler : IIntegrationEventHandler<ProductPriceChangedIntegrationEvent>
{
public async Task Handle(ProductPriceChangedIntegrationEvent @event)
public Task Handle(ProductPriceChangedIntegrationEvent @event)
{
int i = 0;
return Task.CompletedTask;
}
}