Ejemplo n.º 1
0
        public async Task CheckIfAccountIsCreated(string nickname, string email)
        {
            Account account = Account.GetInstanceOf(AccountantTypes.Stakeholder);

            account.Nickname = nickname;
            account.Email    = email;

            var created = await accountProvider.CreateAccountAsync(account);

            Assert.NotNull(created);
            Assert.IsAssignableFrom <Account>(created);
            Assert.True(await accountProvider.RemoveAccount(created));
        }
Ejemplo n.º 2
0
 public Task <Account> CreateAccountAsync(Account account)
 {
     return(provider.CreateAccountAsync(account));
 }