Exemple #1
0
        private static void Kontotransaktionen(BetterBankBL.Interfaces.IKonto Konto)
        {
            // Eine Behauptung prüfen im Rahmen des Testframeworks
            Assert.AreEqual(0.0, Konto.Guthaben);

            Konto.Einzahlen(500);
            
            Assert.IsTrue(Konto.Guthaben == 500.0);
            Assert.AreEqual(500.0, Konto.Guthaben);

            Konto.Abheben(200);
            Assert.IsTrue(Konto.Guthaben == 300.0);
            //Assert.AreEqual(500.0, DonaldsKonto.Guthaben);
            Assert.AreEqual(300.0, Konto.Guthaben);
        }
 public void KontoOeffnen(BetterBankBL.Interfaces.IKonto Konto)
 {
     _Kunde.KontoOeffnen(Konto);
 }
 public KundenViewModel(BetterBankBL.Interfaces.IKunde Kunde)
 {
     _Kunde = Kunde;
 }