diff --git a/MagicCarpetProject/MagicCarpetContracts/Infrastructure/PostConfigurations/PostConfiguration.cs b/MagicCarpetProject/MagicCarpetContracts/Infrastructure/PostConfigurations/PostConfiguration.cs index 41e6565..aecc989 100644 --- a/MagicCarpetProject/MagicCarpetContracts/Infrastructure/PostConfigurations/PostConfiguration.cs +++ b/MagicCarpetProject/MagicCarpetContracts/Infrastructure/PostConfigurations/PostConfiguration.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -10,4 +11,5 @@ public class PostConfiguration { public virtual string Type => nameof(PostConfiguration); public double Rate { get; set; } + public string CultureName { get; set; } = CultureInfo.CurrentCulture.Name; } diff --git a/MagicCarpetProject/MagicCarpetTests/DataModelTests/PostDataModelTests.cs b/MagicCarpetProject/MagicCarpetTests/DataModelTests/PostDataModelTests.cs index 8ebf5c1..c73a79d 100644 --- a/MagicCarpetProject/MagicCarpetTests/DataModelTests/PostDataModelTests.cs +++ b/MagicCarpetProject/MagicCarpetTests/DataModelTests/PostDataModelTests.cs @@ -75,6 +75,7 @@ internal class PostDataModelTests Assert.That(post.PostName, Is.EqualTo(postName)); Assert.That(post.PostType, Is.EqualTo(postType)); Assert.That(post.ConfigurationModel.Rate, Is.EqualTo(configuration.Rate)); + Assert.That(post.ConfigurationModel.CultureName, Is.Not.Empty); }); }