Example #1
0
 public void Deposit(double amount)
 {
     _currentState.Deposit(amount);
     Console.WriteLine("Diposit amount: {0:C}----", amount);
     Console.WriteLine("Balance: {0:C}", Balance);
     Console.WriteLine("Status: {0}", _currentState.GetType().Name);
     Console.WriteLine();
 }
Example #2
0
            public void StateTransition(AccountStatusAwareOperations status)
            {
                logger.LogTrace("Internal state changed to '{0}'. Invoking state transition method.", decorated.GetType().FullName);

                decorated.StateTransition(status);

                logger.LogTrace("State transition method on '{0}' invoked.", decorated.GetType().Name);
            }
            public void StateTransition(LoyaltyPointAccount status)
            {
                log.Trace("Internal state changed to '{0}'. Invoking state transition method.", decorated.GetType().FullName);

                decorated.StateTransition(status);

                log.Trace("State transition method on '{0}' invoked.", decorated.GetType().Name);
            }
            public void StateTransition(LoyaltyPointAccount account)
            {
                log.Trace("Internal state changed to '{0}'.", decorated.GetType().Name);

                decorated.StateTransition(account);
            }
            public void StateTransition(AccountStatusAwareOperations context)
            {
                logger.LogTrace("Internal state changed to '0'.", decorated.GetType().Name);

                decorated.StateTransition(context);
            }