0
0
RhSolutions-Api/RhSolutions.Parsers.Tests/RautitanPipesTests.cs
Serghei Cebotari ab91f7c24b
All checks were successful
Test and release / test (push) Successful in 2m17s
Test and release / release-image (push) Successful in 5m34s
Fix РЕХАУ pipes lookup
2024-04-11 23:22:25 +03:00

33 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace RhSolutions.Api.Tests;
public class RautitanPipesTests : ProductParsersTests
{
[TestCase("Унив.труба RAUTITAN flex 16x2,2, бухта 100м", "Труба РЕХАУ FLEX 16x2,2")]
[TestCase("Труба flex 16", "Труба РЕХАУ FLEX 16x2,2")]
[TestCase("Унив.труба RAUTITAN flex 32x4,4, прям.отрезки 6м", "Труба РЕХАУ FLEX 32x4,4")]
[TestCase("Труба flex 32", "Труба РЕХАУ FLEX 32x4,4")]
public void FlexPipeTest(string query, string modified)
=> Invoke(productType: "Flex", query, modified);
[TestCase("Унив. труба RAUTITAN pink+ 16х2,2 мм, бухта 120 м", "Труба РЕХАУ PINK 16х2,2")]
[TestCase("труба pink 16", "Труба РЕХАУ PINK 16х2,2")]
[TestCase("Унив. труба RAUTITAN pink+ 32х4,4 мм, бухта 50 м", "Труба РЕХАУ PINK 32х4,4")]
[TestCase("труба pink 32", "Труба РЕХАУ PINK 32х4,4")]
[TestCase("труба pink 40", "Труба pink+ 40х5,5")]
public void PinkPipeTest(string query, string modified)
=> Invoke(productType: "Pink", query, modified);
[TestCase("Универсальн.труба RAUTITAN stabil 16,2х2,6 мм, бухта 100 м", "Труба Stabil -PLATINUM 16,2х2,6 бухта")]
[TestCase("труба stabil 16", "Труба Stabil -PLATINUM 16,2х2,6 бухта")]
[TestCase("Универсальн.труба RAUTITAN stabil 32х4,7 мм, прям.отрезки 5м", "Труба Stabil -PLATINUM 32х4,7 прям.отрезки")]
[TestCase("труба stabil 32", "Труба Stabil -PLATINUM 32х4,7 прям.отрезки")]
[TestCase("труба 50", "Труба РЕХАУ FLEX 50x6,9")]
public void StabilPipeTest(string query, string modified)
=> Invoke(productType: "Stabil", query, modified);
[TestCase("Отоп.труба РЕХАУ BLACK 16х2,2 мм, бухта 200 м", "Труба РЕХАУ BLACK 16х2,2 бухта")]
[TestCase("труба BLACK 16", "Труба РЕХАУ BLACK 16х2,2 бухта")]
public void BlackPipeTest(string query, string modified)
=> Invoke(productType: "Black", query, modified);
}