Пример #1
0
        public async Task CheckUserByEmail()
        {
            //Arrange
            var accounts = await userProvider.AccountsAsync();

            Account account = accounts.FirstOrDefault();

            //Act
            var usersByEmail = await userProvider.GetByEmailAsync(account.Email);

            //Assert
            Assert.IsType <List <User> >(usersByEmail);
        }//done
Пример #2
0
 public Task <ICollection <Account> > AccountsAsync()
 {
     return(provider.AccountsAsync());
 }