Esempio n. 1
0
        public void DeleteBankAccount()
        {
            var context = serviceProvider.GetRequiredService <DataContext>();

            var controller = new BankAccountsController(context);

            context.BankAccount.Add(bankAccount1);

            context.SaveChanges();

            controller.DeleteBankAccount("18379133");

            var bankAccount = controller.GetBankAccountById("18379133").Result.Value;

            Assert.Null(bankAccount);
        }