Example #1
0
        private IAccount CreateAccount(IAccount account)
        {
            account.Balance = 0;
            account.CreationDate = DateTime.Now;
            account.Rank = UserRank.SimpleTailor;

            var acc = account.ConvertTo<IAccount>(typeof(Account));
            _accountRepository.AddAccount(acc);
            return acc;
        }