using CAPI.Custom.Repositories; using CAPI.Custom.Services.Events.Quotes; namespace CAPI.Custom.Services.EventHandlers.Quotes { public class QuoteItemsRecalculatedHandler : IHandler { QuoteRepository repository = new QuoteRepository(); public void Handle(QuoteItemsRecalculatedEvent domainEvent) { repository.RecalculateItemsTotals(domainEvent.QuoteId) .RefreshFinalItems(domainEvent.QuoteId) .EstimateDeliveryDate(domainEvent.QuoteId) .RecalculateFinalTotals(domainEvent.QuoteId); } } }