public Payment(PaymentData data) : base(data) { PaymentMethod = PaymentMethodFactory.Create(data?.PaymentMethod); var c = new Currency(data?.Currency); Amount = new Money(c, data?.Amount ?? 0, data?.DateMade); }
public PaymentMethodsList(IEnumerable <PaymentMethodData> items, RepositoryPage page) : base(page) { if (items is null) { return; } foreach (var paymentMethodDbRecord in items) { Add(PaymentMethodFactory.Create(paymentMethodDbRecord)); } }