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 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));
        }