public void CreateAccount(RewardCardType accountType)
        {
            var newAccount = accountFactory.CreateAccount(accountType);

            accountRepository.NewAccount(newAccount);
        }
        public Account CreateAccount(RewardCardType accountType)
        {
            var objectHandle = Activator.CreateInstance(null, string.Format("{0}Account", accountType.ToString()));

            return (Account)objectHandle.Unwrap();
        }
 public void CreateAccount(RewardCardType accountType)
 {
     var newAccount = accountFactory.CreateAccount(accountType);
     accountRepository.NewAccount(newAccount);
 }
Пример #4
0
        public Account CreateAccount(RewardCardType accountType)
        {
            var objectHandle = Activator.CreateInstance(null, string.Format("{0}Account", accountType.ToString()));

            return((Account)objectHandle.Unwrap());
        }