0
0

Add dummy plug

This commit is contained in:
Serghei Cebotari 2023-10-15 14:08:49 +03:00
parent d66d2eee65
commit b3239908cc
3 changed files with 14 additions and 0 deletions

View File

@ -89,4 +89,10 @@ public class RautitanFittingsTests : ProductQueryModifierTests
[TestCase("Монтажная трубка для радиатора, проходная 20 х 15 х 300 мм", "Трубка Т-образная 20/250")]
public void ConnectionTeeTest(string query, string modified)
=> Execute(productType: "Трубка Т-образная", query, modified);
[TestCase("Заглушка для полимерн. трубы 16 RX+", "Заглушка для полимерн. трубы 16")]
[TestCase("Заглушка 20", "Заглушка для полимерн. трубы 20")]
[TestCase("Заглушка, 16, латунь", "Заглушка для полимерн. трубы 16")]
public void DummyPlugTest(string query, string modified)
=> Execute(productType: "Заглушка труб RAUTITAN", query, modified);
}

View File

@ -0,0 +1,6 @@
namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
public class DummyPlug : DrinkingWaterHeatingFitting
{
protected override string _title => "Заглушка для полимерн. трубы";
}

View File

@ -49,6 +49,8 @@ public class ProductQueryModifierFactory
return new ConnectionBend();
case "Трубка Т-образная":
return new ConnectionTee();
case "Заглушка труб RAUTITAN":
return new DummyPlug();
case "Flex":
return new FlexPipe();
case "Pink":