0
0

Add supporting clip

This commit is contained in:
Serghei Cebotari 2023-10-14 13:59:30 +03:00
parent 45b23aeed2
commit ee2982e318
3 changed files with 13 additions and 1 deletions

View File

@ -5,7 +5,11 @@ public class RautitanFittingsTests : ProductQueryModifierTests
[TestCase("Гильза 16", "Монтажная гильза 16")] [TestCase("Гильза 16", "Монтажная гильза 16")]
[TestCase("Пресс-втулка 20", "Монтажная гильза 20")] [TestCase("Пресс-втулка 20", "Монтажная гильза 20")]
public void SleeveTest(string query, string modified) public void SleeveTest(string query, string modified)
=> Execute(productType: "Монтажная гильза", query, modified); => Execute(productType: "Монтажная гильза", query, modified);
[TestCase("Фиксирующий желоб для ПЭ-трубы 20", "Фиксирующий желоб для ПЭ-трубы 20")]
public void SupportingClipTest(string query, string modified)
=> Execute(productType: "Желоб", query, modified);
[TestCase("Тройник 20-16-16", "Тройник RAUTITAN -PLATINUM 20-16-16")] [TestCase("Тройник 20-16-16", "Тройник RAUTITAN -PLATINUM 20-16-16")]
[TestCase("Тройник 20x16x16", "Тройник RAUTITAN -PLATINUM 20-16-16")] [TestCase("Тройник 20x16x16", "Тройник RAUTITAN -PLATINUM 20-16-16")]

View File

@ -0,0 +1,6 @@
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
public class SupportingClip : DrinkingWaterHeatingFitting
{
protected override string _title => "Фиксирующий желоб для ПЭ-трубы";
}

View File

@ -11,6 +11,8 @@ public class ProductQueryModifierFactory
{ {
case "Монтажная гильза": case "Монтажная гильза":
return new Sleeve(); return new Sleeve();
case "Желоб":
return new SupportingClip();
case "Тройник RAUTITAN": case "Тройник RAUTITAN":
return new TPiece(); return new TPiece();
case "Тройник RAUTITAN резьбовой наружный": case "Тройник RAUTITAN резьбовой наружный":