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)); }
public Task <Account> CreateAccountAsync(Account account) { return(provider.CreateAccountAsync(account)); }