0
0

Fix cyrillic x divider

This commit is contained in:
Serghei Cebotari 2023-10-08 16:28:37 +03:00
parent 9501c4ed8b
commit 8252e962db
2 changed files with 14 additions and 4 deletions

View File

@ -9,10 +9,10 @@ public class RautitanPipesTests : ProductQueryModifierTests
public void FlexPipeTest(string query, string modified) public void FlexPipeTest(string query, string modified)
=> Execute(productType: "Flex", query, modified); => Execute(productType: "Flex", query, modified);
[TestCase("Унив. труба RAUTITAN pink+ 16х2,2 мм, бухта 120 м", "Труба Pink+ 16x2,2 бухта")] [TestCase("Унив. труба RAUTITAN pink+ 16х2,2 мм, бухта 120 м", "Труба Pink+ 16х2,2 бухта")]
[TestCase("труба pink 16", "Труба Pink+ 16x2,2 бухта")] [TestCase("труба pink 16", "Труба Pink+ 16х2,2 бухта")]
[TestCase("Унив. труба RAUTITAN pink+ 32х4,4 мм, бухта 50 м", "Труба Pink+ 32x4,4 бухта")] [TestCase("Унив. труба RAUTITAN pink+ 32х4,4 мм, бухта 50 м", "Труба Pink+ 32х4,4 бухта")]
[TestCase("труба pink 32", "Труба Pink+ 32x4,4 прямые отрезки")] [TestCase("труба pink 32", "Труба Pink+ 32х4,4 прямые отрезки")]
public void PinkPipeTest(string query, string modified) public void PinkPipeTest(string query, string modified)
=> Execute(productType: "Pink", query, modified); => Execute(productType: "Pink", query, modified);

View File

@ -4,6 +4,16 @@ namespace RhSolutions.Api.Services
public class PinkPipeQueryModifier : PipeQueryModifier public class PinkPipeQueryModifier : PipeQueryModifier
{ {
protected override string pipeName => "Pink+"; protected override string pipeName => "Pink+";
protected override Dictionary<string, string> diameterNames => new()
{
["16"] = "16х2,2",
["20"] = "20х2,8",
["25"] = "25х3,5",
["32"] = "32х4,4",
["40"] = "40х5,5",
["50"] = "50х6,9",
["63"] = "63х8,7"
};
protected override Dictionary<string, string> makeUpNames => new() protected override Dictionary<string, string> makeUpNames => new()
{ {
["бухт"] = "бухта", ["бухт"] = "бухта",