예제 #1
0
        public async Task CheckIfAccountIsEdit(string nickname, string email)
        {
            var accounts = await accountProvider.AccountsAsync();

            Account account = accounts.FirstOrDefault();
            var     nick    = account.Nickname;
            var     mail    = account.Email;

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

            //Act

            var edit = await accountProvider.EditAsync(account);


            Assert.NotNull(edit);
            Assert.IsAssignableFrom <Account>(edit);
            account.Nickname = nick;
            account.Email    = mail;
            await accountProvider.EditAsync(account);
        }
예제 #2
0
 public Task <Account> EditAsync(Account account)
 {
     return(provider.EditAsync(account));
 }