Skip to content

Commit

Permalink
Changed "isValid" to "IsValid"
Browse files Browse the repository at this point in the history
  • Loading branch information
kajetan-kazimierczak committed Mar 28, 2019
1 parent 9a92295 commit fbe9878
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BankAccountDemoConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()}");
Expand Down
2 changes: 1 addition & 1 deletion KajetanKazimierczak.SwedishBankAccounts.Tests/UnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion KajetanKazimierczak.SwedishBankAccounts/BankAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public BankAccount(string clearingNumber, string accountNumber)
/// <summary>
/// Shows if account is valid or not. Check ValidationResult for more info
/// </summary>
public bool isValid => _isValid;
public bool IsValid => _isValid;

/// <summary>
/// Result of the validation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Copyright>Kajetan Kazimierczak</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageTags>swedish bank account validator validate bankkonto bankgiro plusgiro</PackageTags>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<Description>Can validate most swedish bank account numbers consisting of clearing number and account number. Also validates BankGiro and PlusGiro account numbers.</Description>
<RepositoryUrl>https://github.com/kajetan-kazimierczak/SwedishBankAccounts</RepositoryUrl>
<PackageLicenseUrl></PackageLicenseUrl>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()}");
Expand All @@ -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()}");
Expand All @@ -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()}");
Expand Down

0 comments on commit fbe9878

Please sign in to comment.