Compare commits
No commits in common. "29d70967861e32ad8c67adcd9bdc19fc018325ef" and "ab91f7c24bde78aea394b1239af56d3ef1a93f7d" have entirely different histories.
29d7096786
...
ab91f7c24b
@ -11,20 +11,20 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ClosedXML" Version="0.102.2" />
|
<PackageReference Include="ClosedXML" Version="0.102.2" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.4" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.4" />
|
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="8.0.4" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.4">
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.1">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.ML" Version="3.0.1" />
|
<PackageReference Include="Microsoft.ML" Version="3.0.1" />
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
|
||||||
<PackageReference Include="Rhsolutions.ProductSku" Version="1.0.2" />
|
<PackageReference Include="Rhsolutions.ProductSku" Version="1.0.2" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.5.1" />
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -22,7 +22,6 @@ public class RautitanFittingsTests : ProductParsersTests
|
|||||||
[TestCase("Тройник 20-16-16", "Тройник -PLATINUM 20-16-16")]
|
[TestCase("Тройник 20-16-16", "Тройник -PLATINUM 20-16-16")]
|
||||||
[TestCase("Тройник 20x16x16", "Тройник -PLATINUM 20-16-16")]
|
[TestCase("Тройник 20x16x16", "Тройник -PLATINUM 20-16-16")]
|
||||||
[TestCase("Тройник 20-16-25", "Тройник -PLATINUM 25-16-20")]
|
[TestCase("Тройник 20-16-25", "Тройник -PLATINUM 25-16-20")]
|
||||||
[TestCase("SFA-0014-251620 STOUT Тройник переходной 25x16x20 для труб 12", "Тройник -PLATINUM 25-16-20")]
|
|
||||||
public void TPieceTest(string query, string modified)
|
public void TPieceTest(string query, string modified)
|
||||||
=> Invoke(productType: "Тройник RAUTITAN", query, modified);
|
=> Invoke(productType: "Тройник RAUTITAN", query, modified);
|
||||||
|
|
||||||
@ -35,8 +34,7 @@ public class RautitanFittingsTests : ProductParsersTests
|
|||||||
=> Invoke(productType: "Муфта соединительная", query, modified);
|
=> Invoke(productType: "Муфта соединительная", query, modified);
|
||||||
|
|
||||||
[TestCase("Переходник с внутренней резьбой 16xG 3/4\" для труб из сшитого полиэтилена аксиальный", "Переходник с внутренней резьбой -угольник-переходник 16 3/4")]
|
[TestCase("Переходник с внутренней резьбой 16xG 3/4\" для труб из сшитого полиэтилена аксиальный", "Переходник с внутренней резьбой -угольник-переходник 16 3/4")]
|
||||||
[TestCase("Переходник на внутреннюю резьбу 20", "Переходник с внутренней резьбой -угольник-переходник 20 1/2")]
|
[TestCase("Переходник на внутреннюю резьбу 20", "Переходник с внутренней резьбой -угольник-переходник 20 1/2")]
|
||||||
[TestCase("32 Соединение прямое с внутренней резьбой, 40 х 1 1/2", "Переходник с внутренней резьбой -угольник-переходник 40 1 1/2")]
|
|
||||||
public void AdapterInternalTest(string query, string modified)
|
public void AdapterInternalTest(string query, string modified)
|
||||||
=> Invoke(productType: "Переходник на внутреннюю резьбу", query, modified);
|
=> Invoke(productType: "Переходник на внутреннюю резьбу", query, modified);
|
||||||
|
|
||||||
@ -94,13 +92,11 @@ public class RautitanFittingsTests : ProductParsersTests
|
|||||||
|
|
||||||
[TestCase("Трубка из. нерж. стали для подкл. радиатора, Г-образная 16/250", "Трубка Г-образная 16/250")]
|
[TestCase("Трубка из. нерж. стали для подкл. радиатора, Г-образная 16/250", "Трубка Г-образная 16/250")]
|
||||||
[TestCase("Монтажная трубка для радиатора, конечная, 16 х 15 х 300 мм", "Трубка Г-образная 16/250")]
|
[TestCase("Монтажная трубка для радиатора, конечная, 16 х 15 х 300 мм", "Трубка Г-образная 16/250")]
|
||||||
[TestCase("L-образная латунная трубка для радиатора РОС 16х15х300", "Трубка Г-образная 16/250")]
|
|
||||||
public void ConnectionBendTest(string query, string modified)
|
public void ConnectionBendTest(string query, string modified)
|
||||||
=> Invoke(productType: "Трубка Г-образная", query, modified);
|
=> Invoke(productType: "Трубка Г-образная", query, modified);
|
||||||
|
|
||||||
[TestCase("Трубка из. нерж. стали для подкл. радиатора, Т-образная 16/250", "Трубка Т-образная 16/250")]
|
[TestCase("Трубка из. нерж. стали для подкл. радиатора, Т-образная 16/250", "Трубка Т-образная 16/250")]
|
||||||
[TestCase("Монтажная трубка для радиатора, проходная 20 х 15 х 300 мм", "Трубка Т-образная 20/250")]
|
[TestCase("Монтажная трубка для радиатора, проходная 20 х 15 х 300 мм", "Трубка Т-образная 20/250")]
|
||||||
[TestCase("T-образная латунная трубка для радиатора РОС 16х15х300", "Трубка Т-образная 16/250")]
|
|
||||||
public void ConnectionTeeTest(string query, string modified)
|
public void ConnectionTeeTest(string query, string modified)
|
||||||
=> Invoke(productType: "Трубка Т-образная", query, modified);
|
=> Invoke(productType: "Трубка Т-образная", query, modified);
|
||||||
|
|
||||||
|
@ -9,14 +9,14 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
||||||
<PackageReference Include="NUnit" Version="4.1.0" />
|
<PackageReference Include="NUnit" Version="4.0.1" />
|
||||||
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
|
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
|
||||||
<PackageReference Include="NUnit.Analyzers" Version="4.1.0">
|
<PackageReference Include="NUnit.Analyzers" Version="4.0.1">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="coverlet.collector" Version="6.0.2">
|
<PackageReference Include="coverlet.collector" Version="6.0.0">
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
|
@ -7,7 +7,7 @@ public class ConnectionBend : DrinkingWaterHeatingFitting
|
|||||||
{
|
{
|
||||||
private static readonly int[] lengths = [250, 500, 1000];
|
private static readonly int[] lengths = [250, 500, 1000];
|
||||||
private static readonly Regex _pattern =
|
private static readonly Regex _pattern =
|
||||||
new(@"([\b\D]|^)?(?<Diameter>16|20|25)(\D+|.*15.*)(?<Length>\d{3,4})([\b\D]|$)");
|
new(@"([\b\D]|^)?(?<Diameter>16|20|25)(\D+|.*15.*)(?<Length>\b\d{3,4})([\b\D]|$)");
|
||||||
protected override string _title => "Трубка Г-образная";
|
protected override string _title => "Трубка Г-образная";
|
||||||
|
|
||||||
public override bool TryParse(string input, out string output)
|
public override bool TryParse(string input, out string output)
|
||||||
|
@ -5,11 +5,11 @@ namespace RhSolutions.Parsers.Fittings;
|
|||||||
public abstract class DrinkingWaterHeatingFitting : IProductParser
|
public abstract class DrinkingWaterHeatingFitting : IProductParser
|
||||||
{
|
{
|
||||||
protected static readonly Regex _diameter =
|
protected static readonly Regex _diameter =
|
||||||
new(@"(?<!^)[\b\D]?(?<Diameter>16|20|25|32|40|50|63)[\b\D]?");
|
new(@"([\b\D]|^)?(?<Diameter>16|20|25|32|40|50|63)([\b\D]|$)");
|
||||||
protected static readonly Regex _angle =
|
protected static readonly Regex _angle =
|
||||||
new(@"(?<!^)([\b\D])(?<Angle>45|90)([\b\D]|$)");
|
new(@"([\b\D])(?<Angle>45|90)([\b\D]|$)");
|
||||||
protected static readonly Regex _thread =
|
protected static readonly Regex _thread =
|
||||||
new(@"(?<!^)([\b\D])(?<Thread>1\s+1/4|1\s+1/2|1/2|3/4|2|1)([\b\D]|$)");
|
new(@"([\b\D])(?<Thread>1\s+1/4|1\s+1/2|1/2|3/4|2|1)([\b\D]|$)");
|
||||||
|
|
||||||
protected virtual string _title { get; } = string.Empty;
|
protected virtual string _title { get; } = string.Empty;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user