示例#1
0
        public async Task NovaConta_UsuarioAindaNaoExiste_DeveCadastrarComSucesso()
        {
            var(AccountRepository, BusinessContext) = new Build().GetNewAccountRepository();

            var newAccount = new AccountModel("Assane", "Diop", GenderType.Male, "LUPIN", "*****@*****.**");

            await AccountRepository.AddAsync(newAccount);

            await BusinessContext.CommitTransactionAsync();

            int countActual = (await AccountRepository.GetAllAsync()).Count();

            Assert.Equal(SeedData.GetAccounts().Count() + 1, countActual);
        }