Beispiel #1
0
        public async Task AddMoneyTest()
        {
            User user = await _logic.AddUser("Vanja van Essen");

            BankAccount account = await _logic.AddBankAccount(user, "Persoonlijke Kaart", 0);

            await _logic.AddMoney(account, 10, "Initial money");

            NUnit.Framework.Assert.AreEqual(10, account.Money, "Account didn't get the money correctly");
        }
Beispiel #2
0
 public void TestAddUser()
 {
     NUnit.Framework.Assert.DoesNotThrow(() => BankLogic.AddUser("test", false));
 }