internal Booking(Events.V1.BookingAddedToAccount @event) { Id = BookingId.FromGuid(@event.BookingId); Date = BookingDate.FromDate(@event.Date); Payment = Payment.FromDecimal(@event.Amount, @event.CurrencyCode); Description = Description.FromString(@event.Description); }
#pragma warning disable CC0068 // Unused Method #pragma warning disable IDE0051 // Remove unused private members #pragma warning disable CC0057 // Unused parameters #pragma warning disable IDE0060 // Remove unused parameter private void Handle(Events.V1.BookingChanged @event) { Date = BookingDate.FromDate(@event.Date); Payment = Payment.FromDecimal(@event.Amount, @event.CurrencyCode); Description = Description.FromString(@event.Description); }