Skip to content

Commit

Permalink
renamed king crimson
Browse files Browse the repository at this point in the history
  • Loading branch information
lievvl committed Nov 27, 2021
1 parent 4c1d5f3 commit 270012d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Banks.Tests/BanksTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Banks/Entities/CentralBank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down
2 changes: 1 addition & 1 deletion Banks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 270012d

Please sign in to comment.