From fbe98784a0babd76b48ec9f6acc9994b1da45ce4 Mon Sep 17 00:00:00 2001 From: Kajetan Kazimierczak Date: Thu, 28 Mar 2019 11:51:41 +0100 Subject: [PATCH] Changed "isValid" to "IsValid" --- BankAccountDemoConsoleApp/Program.cs | 2 +- KajetanKazimierczak.SwedishBankAccounts.Tests/UnitTests.cs | 2 +- KajetanKazimierczak.SwedishBankAccounts/BankAccount.cs | 2 +- .../KajetanKazimierczak.SwedishBankAccounts.csproj | 2 +- README.md | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BankAccountDemoConsoleApp/Program.cs b/BankAccountDemoConsoleApp/Program.cs index 795a7fb..5c3a10b 100644 --- a/BankAccountDemoConsoleApp/Program.cs +++ b/BankAccountDemoConsoleApp/Program.cs @@ -11,7 +11,7 @@ static void Main(string[] args) var account = new BankAccount(accountNumber); - if (!account.isValid) + if (!account.IsValid) { Console.WriteLine("Account number invalid"); Console.WriteLine($"Reason: {account.ValidationResult.ToString()}"); diff --git a/KajetanKazimierczak.SwedishBankAccounts.Tests/UnitTests.cs b/KajetanKazimierczak.SwedishBankAccounts.Tests/UnitTests.cs index 4da63fd..c85b6e5 100644 --- a/KajetanKazimierczak.SwedishBankAccounts.Tests/UnitTests.cs +++ b/KajetanKazimierczak.SwedishBankAccounts.Tests/UnitTests.cs @@ -58,7 +58,7 @@ public void ShouldEvaluateAccountAndClearingNumbers(string clearingNumber, { var sut = new BankAccount(clearingNumber, accountNumber); - Assert.AreEqual(expected, sut.isValid); + Assert.AreEqual(expected, sut.IsValid); Assert.AreEqual(validationResult, sut.ValidationResult); } diff --git a/KajetanKazimierczak.SwedishBankAccounts/BankAccount.cs b/KajetanKazimierczak.SwedishBankAccounts/BankAccount.cs index 2d4c04f..0314929 100644 --- a/KajetanKazimierczak.SwedishBankAccounts/BankAccount.cs +++ b/KajetanKazimierczak.SwedishBankAccounts/BankAccount.cs @@ -88,7 +88,7 @@ public BankAccount(string clearingNumber, string accountNumber) /// /// Shows if account is valid or not. Check ValidationResult for more info /// - public bool isValid => _isValid; + public bool IsValid => _isValid; /// /// Result of the validation diff --git a/KajetanKazimierczak.SwedishBankAccounts/KajetanKazimierczak.SwedishBankAccounts.csproj b/KajetanKazimierczak.SwedishBankAccounts/KajetanKazimierczak.SwedishBankAccounts.csproj index 3cc5399..9ee451b 100644 --- a/KajetanKazimierczak.SwedishBankAccounts/KajetanKazimierczak.SwedishBankAccounts.csproj +++ b/KajetanKazimierczak.SwedishBankAccounts/KajetanKazimierczak.SwedishBankAccounts.csproj @@ -8,7 +8,7 @@ Kajetan Kazimierczak true swedish bank account validator validate bankkonto bankgiro plusgiro - 1.0.0 + 1.0.1 Can validate most swedish bank account numbers consisting of clearing number and account number. Also validates BankGiro and PlusGiro account numbers. https://github.com/kajetan-kazimierczak/SwedishBankAccounts diff --git a/README.md b/README.md index 7d574d2..ef23fc9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Instantiate the BankAccount, PlusGiro or BankGiro class and check the IsValid pr ```csharp var account = new BankAccount(clearigNumber, accountNumber); -if (!account.isValid) +if (!account.IsValid) { Console.WriteLine("Account number invalid"); Console.WriteLine($"Reason: {account.ValidationResult.ToString()}"); @@ -46,7 +46,7 @@ var account = new BankAccount(fullAccountNumber); ```csharp var account = new PlusGiro(accountNumber); -if (!account.isValid) +if (!account.IsValid) { Console.WriteLine("Account number invalid"); Console.WriteLine($"Reason: {account.ValidationResult.ToString()}"); @@ -62,7 +62,7 @@ Console.WriteLine($"Validation result: {account.ValidationResult.ToString()}"); ```csharp var account = new BankGiro(accountNumber); -if (!account.isValid) +if (!account.IsValid) { Console.WriteLine("Account number invalid"); Console.WriteLine($"Reason: {account.ValidationResult.ToString()}");