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 Account CreateAccount(RewardCardType accountType) { var objectHandle = Activator.CreateInstance(null, string.Format("{0}Account", accountType.ToString())); return((Account)objectHandle.Unwrap()); }