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"); }
public void TestAddBankAccount() { User user = new User() { Id = Guid.NewGuid().ToString(), dateofcreation = DateTime.Now, dummyaccount = true, Name = "Test" }; NUnit.Framework.Assert.DoesNotThrow(() => BankLogic.AddBankAccount(user, "test", 1000000, true)); }