Example #1
0
 public DepositStateMachineMessage(BankAccountStateMachineAmount item)
 {
     Item = item;
 }
Example #2
0
 public WithdrawStateMachineMessage(BankAccountStateMachineAmount item)
 {
     Item = item;
 }
Example #3
0
 public static BankAccountStateMachineMessage NewDepositMessage(
     BankAccountStateMachineAmount bankAccountStateMachineAmount)
 => new ChoiceTypes.DepositStateMachineMessage(bankAccountStateMachineAmount);
Example #4
0
 public static BankAccountStateMachineMessage NewWithdrawMessage(
     BankAccountStateMachineAmount bankAccountStateMachineAmount)
 => new ChoiceTypes.WithdrawStateMachineMessage(bankAccountStateMachineAmount);
Example #5
0
 public BankAccountStateMachineAmount Add(BankAccountStateMachineAmount other)
 => new BankAccountStateMachineAmount(Value + other.Value);
Example #6
0
 public BankAccountStateMachineAmount Subtract(BankAccountStateMachineAmount other)
 => new BankAccountStateMachineAmount(Value - other.Value);
Example #7
0
 protected bool Equals(BankAccountStateMachineAmount other)
 {
     return(Equals((object)other));
 }
 public OverdrawnBankAccountStateMachineBalance(BankAccountStateMachineAmount amount)
 {
     Amount = amount;
 }
 public ActiveBankAccountStateMachineBalance(BankAccountStateMachineAmount amount)
 {
     Amount = amount;
 }
 public static BankAccountStateMachineBalance NewOverdrawnBalance(BankAccountStateMachineAmount amount)
 => new ChoiceTypes.OverdrawnBankAccountStateMachineBalance(amount);
 public static BankAccountStateMachineBalance NewActiveBalance(BankAccountStateMachineAmount amount)
 => new ChoiceTypes.ActiveBankAccountStateMachineBalance(amount);