예제 #1
0
 private void Handle(ShopCashTransferCreatedEvent evnt)
 {
     _id       = evnt.AggregateRootId;
     _nunber   = evnt.Number;
     _info     = evnt.Info;
     _type     = evnt.Type;
     _status   = evnt.Status;
     _walletId = evnt.WalletId;
 }
예제 #2
0
        private ShopCashTransferStatus _status; //状态


        public ShopCashTransfer(Guid id, Guid walletId, string number, ShopCashTransferInfo info, ShopCashTransferType type, ShopCashTransferStatus status)
            : base(id)
        {
            id.CheckNotEmpty(nameof(id));
            walletId.CheckNotEmpty(nameof(walletId));
            info.CheckNotNull(nameof(info));

            ApplyEvent(new ShopCashTransferCreatedEvent(walletId, number, info, type, status));
        }