public void Setup() { var clientBuilder = new ClientBuilder(); _client = clientBuilder .AddName("Nikita") .AddSurname("Dunaev") .AddAddress("ABC123") .AddPassportDetails("727272") .Build(); _client.ChooseBank .FirstBank() .CreateBankAccount .CreatDebitAccount(_client, new DebitAccountInformation(365, 200)); var clientBuilder1 = new ClientBuilder(); _client1 = clientBuilder1 .AddName("Huy") .AddSurname("Li") .AddAddress("R13") .AddPassportDetails("432342") .Build(); _client1.ChooseBank .FirstBank() .CreateBankAccount .CreatCreditAccount(_client1, new CreditAccountInformation(-3000, 300, 5000)); }
public void Setup() { SystemTime.ResetDateTime(); var clientBuilder1 = new ClientBuilder(); _client1 = clientBuilder1 .AddName("Huy") .AddSurname("Li") .AddAddress("R13") .AddPassportDetails("432342") .Build(); _client1.ChooseBank .FirstBank() .CreateBankAccount .CreatCreditAccount(_client1, new CreditAccountInformation(-3000, 300, 5000)); }
public void Setup() { SystemTime.ResetDateTime(); var clientBuilder = new ClientBuilder(); _client = clientBuilder .AddName("Nikita") .AddSurname("Dunaev") .AddAddress("ABC123") .AddPassportDetails("727272") .Build(); _client.ChooseBank .FirstBank() .CreateBankAccount .CreatDebitAccount(_client, new DebitAccountInformation(12, 200)); }
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")); }