コード例 #1
0
 public DepositStateMachineMessage(BankAccountStateMachineAmount item)
 {
     Item = item;
 }
コード例 #2
0
 public WithdrawStateMachineMessage(BankAccountStateMachineAmount item)
 {
     Item = item;
 }
コード例 #3
0
 public static BankAccountStateMachineMessage NewDepositMessage(
     BankAccountStateMachineAmount bankAccountStateMachineAmount)
 => new ChoiceTypes.DepositStateMachineMessage(bankAccountStateMachineAmount);
コード例 #4
0
 public static BankAccountStateMachineMessage NewWithdrawMessage(
     BankAccountStateMachineAmount bankAccountStateMachineAmount)
 => new ChoiceTypes.WithdrawStateMachineMessage(bankAccountStateMachineAmount);
コード例 #5
0
 public BankAccountStateMachineAmount Add(BankAccountStateMachineAmount other)
 => new BankAccountStateMachineAmount(Value + other.Value);
コード例 #6
0
 public BankAccountStateMachineAmount Subtract(BankAccountStateMachineAmount other)
 => new BankAccountStateMachineAmount(Value - other.Value);
コード例 #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);