private CreatePayment CreatePaymentCommand(Order order) { var description = "Payment for the order of " + this.ConferenceAlias.Name; var paymentCommand = new CreatePayment { AggregateRootId = GuidUtil.NewSequentialId(), ConferenceId = this.ConferenceAlias.Id, OrderId = order.OrderId, Description = description, TotalAmount = order.TotalAmount, Lines = order.GetLines().Select(x => new PaymentLine { Id = x.SeatTypeId, Description = x.SeatTypeName, Amount = x.LineTotal }) }; return paymentCommand; }