Esempio n. 1
0
        private CashTransferStatus _status; //状态


        public CashTransfer(Guid id, Guid walletId, string number, CashTransferInfo info, CashTransferType type, CashTransferStatus status)
            : base(id)
        {
            id.CheckNotEmpty(nameof(id));
            walletId.CheckNotEmpty(nameof(walletId));
            info.CheckNotNull(nameof(info));

            ApplyEvent(new CashTransferCreatedEvent(walletId, number, info, type, status));
        }
Esempio n. 2
0
 public CashTransferCreatedEvent(Guid walletId, string number, CashTransferInfo info, CashTransferType type, CashTransferStatus status) : base(walletId, number)
 {
     Info   = info;
     Type   = type;
     Status = status;
 }