Пример #1
0
 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);
 }
Пример #2
0
#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);
        }