From 270012d74924fea5359ef0f30d779d41213e6b74 Mon Sep 17 00:00:00 2001 From: lievvl <37303364+lievvl@users.noreply.github.com> Date: Sat, 27 Nov 2021 19:00:48 +0300 Subject: [PATCH] renamed king crimson --- Banks.Tests/BanksTest.cs | 6 +++--- Banks/Entities/CentralBank.cs | 2 +- Banks/Program.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Banks.Tests/BanksTest.cs b/Banks.Tests/BanksTest.cs index 7357ecb..c90e1ce 100644 --- a/Banks.Tests/BanksTest.cs +++ b/Banks.Tests/BanksTest.cs @@ -118,11 +118,11 @@ public void DenyCommand1Twice_CatchException() [Test] public void UseKingCrimson_PayInterest_CheckDepositAccount_UseKingCrimson_CheckDepositAccount() { - centralBank.KINGU_CRIMSONU(1); + centralBank.CalculateInterests(1); centralBank.PayInterests(); Assert.AreEqual(1010, account2.Money); - centralBank.KINGU_CRIMSONU(1); + centralBank.CalculateInterests(1); centralBank.PayInterests(); Assert.AreEqual(1030.2, account2.Money); } @@ -133,7 +133,7 @@ public void Withdraw3000FromCredit_UseKingCrimson_Check() ICommand command = new WithdrawCommand(account3, 3000); command.Execute(); - centralBank.KINGU_CRIMSONU(1); + centralBank.CalculateInterests(1); centralBank.PayInterests(); Assert.AreEqual(-2000, account3.Money); diff --git a/Banks/Entities/CentralBank.cs b/Banks/Entities/CentralBank.cs index 2e4d652..19cf84d 100644 --- a/Banks/Entities/CentralBank.cs +++ b/Banks/Entities/CentralBank.cs @@ -37,7 +37,7 @@ public void PayInterests() } } - public void KINGU_CRIMSONU(int count) + public void CalculateInterests(int count) { for (int i = 0; i < count; i++) { diff --git a/Banks/Program.cs b/Banks/Program.cs index 0808361..3a3cae5 100644 --- a/Banks/Program.cs +++ b/Banks/Program.cs @@ -277,7 +277,7 @@ private static void Main() { Console.WriteLine("Input count"); int count = Convert.ToInt32(Console.ReadLine()); - centralBank.KINGU_CRIMSONU(count); + centralBank.CalculateInterests(count); break; }