Beispiel #1
0
        public void NotValidAccount_WithDraw700FromAccount_NothingNothing3800()
        {
            var clientBuilder2 = new ClientBuilder();

            var client2 = clientBuilder2
                          .AddName("Nikita")
                          .Build();

            client2.ChooseBank
            .FirstBank()
            .CreateBankAccount
            .CreatDebitAccount(client2, new DebitAccountInformation(4, 4000));
            client2.WithdrawMoneyOnYourBankAccount(client2.BankAccountsIdsList[0], 700);
            Assert.That(client2.BankAccountStatus(client2.BankAccountsIdsList[0]), Is.EqualTo("Your Balance: 4000"));

            clientBuilder2
            .AddSurname("Dunaev");
            client2.WithdrawMoneyOnYourBankAccount(client2.BankAccountsIdsList[0], 700);
            Assert.That(client2.BankAccountStatus(client2.BankAccountsIdsList[0]), Is.EqualTo("Your Balance: 4000"));
            client2.WithdrawMoneyOnYourBankAccount(client2.BankAccountsIdsList[0], 200);
            Assert.That(client2.BankAccountStatus(client2.BankAccountsIdsList[0]), Is.EqualTo("Your Balance: 3800"));
        }