From 7fd4110d0fd5699c93414f0a4ba3c3aa79f8c44d Mon Sep 17 00:00:00 2001 From: bchavez Date: Thu, 7 Dec 2017 21:57:09 -0800 Subject: [PATCH] Fix up on ExtensionsForItaly. --- README.md | 3 +++ Source/Bogus.Tests/ExtensionTests/ExtensionTest.cs | 1 + .../Bogus/Extensions/ExtensionsForItaly.CodiceFiscale.cs | 2 +- Source/Bogus/Extensions/ExtensionsForItaly.cs | 7 +++---- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b739499b..f3b020cc 100644 --- a/README.md +++ b/README.md @@ -378,6 +378,9 @@ public void Or_Using_DataSets_Directly() * `Bogus.Person.Cpr()` - Danish Personal Identification number * **`using Bogus.Extensions.Finland;`** * `Bogus.Person.Henkilötunnus()` - Finnish Henkilötunnus +* **`using Bogus.Extensions.Italy;`** + * `Bogus.Person.CodiceFiscale()` - Codice Fiscale + * `Bogus.DataSets.Finance.CodiceFiscale()` - Codice Fiscale * **`using Bogus.Extensions.UnitedKingdom;`** * `Bogus.DataSets.Finance.ShortCode()` - Banking Short Code * **`using Bogus.Extensions.UnitedStates;`** diff --git a/Source/Bogus.Tests/ExtensionTests/ExtensionTest.cs b/Source/Bogus.Tests/ExtensionTests/ExtensionTest.cs index 25c46e36..0ae60d36 100644 --- a/Source/Bogus.Tests/ExtensionTests/ExtensionTest.cs +++ b/Source/Bogus.Tests/ExtensionTests/ExtensionTest.cs @@ -1,6 +1,7 @@ using Bogus.DataSets; using Bogus.Extensions; using Bogus.Extensions.UnitedKingdom; +using Bogus.Extensions.Italy; using FluentAssertions; using System; using Xunit; diff --git a/Source/Bogus/Extensions/ExtensionsForItaly.CodiceFiscale.cs b/Source/Bogus/Extensions/ExtensionsForItaly.CodiceFiscale.cs index 2b1e7152..251b1357 100644 --- a/Source/Bogus/Extensions/ExtensionsForItaly.CodiceFiscale.cs +++ b/Source/Bogus/Extensions/ExtensionsForItaly.CodiceFiscale.cs @@ -4,7 +4,7 @@ using System.Text; using System.Text.RegularExpressions; -namespace Bogus.Extensions +namespace Bogus.Extensions.Italy { /// /// This class implements the principal routines of the Italian fiscal code, diff --git a/Source/Bogus/Extensions/ExtensionsForItaly.cs b/Source/Bogus/Extensions/ExtensionsForItaly.cs index 2ad7642f..cfec755c 100644 --- a/Source/Bogus/Extensions/ExtensionsForItaly.cs +++ b/Source/Bogus/Extensions/ExtensionsForItaly.cs @@ -1,7 +1,7 @@ using Bogus.DataSets; using System; -namespace Bogus.Extensions +namespace Bogus.Extensions.Italy { /// /// Italian class extensions @@ -9,7 +9,7 @@ namespace Bogus.Extensions public static class ExtensionsForItaly { /// - /// Extends the Person class with Italian Fiscal Code + /// Codice Fiscale /// /// The holder /// @@ -27,8 +27,7 @@ public static string CodiceFiscale(this Person p, bool validChecksum = true) } /// - /// Extends the Finance data set with Italian Fiscal Code and more - /// fine grained parameters + /// Codice Fiscale /// /// An instance of the extended Finance class /// Last name of the holder