private AccountTransactionDomainEntity With(
     ITransactionOwner from,
     ITransactionOwner to,
     decimal amount,
     TransactionTypeDomainEntity transactionType,
     TransactionStatusDomainEntity transactionStatus,
     ITransactionOwner transactionOwner)
 {
     Amount               = amount;
     TransactionType      = transactionType;
     TransactionStatus    = transactionStatus;
     FromTransactionOwner = from;
     ToTransactionOwner   = to;
     TransactionOwner     = transactionOwner;
     return(this);
 }
Example #2
0
 private TransactionOrderDomainEntity With(
     TransactionTypeDomainEntity transactionType,
     string orderDescription,
     DateTime operationDate,
     AccountDomainEntity fromAccount,
     AccountDomainEntity toAccount,
     decimal amount,
     TransactionStatusDomainEntity transactionOrderStatus)
 {
     TransactionType   = transactionType;
     OrderDesctiption  = orderDescription;
     CreateDate        = DateTime.Now;
     OperationDate     = operationDate;
     FromAccount       = fromAccount;
     ToAccount         = toAccount;
     Amount            = amount;
     TransactionStatus = transactionOrderStatus;
     return(this);
 }
 public void SetStatus(TransactionStatusEnum transactionStatus)
 {
     TransactionStatus = coreContext.Query <ITransactionStatusRepository>().GetByKey(transactionStatus.ToString());
 }