0
0
RhSolutions-Api/RhSolutions.Api/Services/ProductQueryModifierFactory.cs

24 lines
570 B
C#
Raw Normal View History

2023-09-19 14:56:55 +03:00
namespace RhSolutions.Api.Services;
public class ProductQueryModifierFactory
{
2023-09-29 11:20:05 +03:00
public IProductQueryModifier GetModifier(string productTypeName)
{
switch (productTypeName)
{
case "Монтажная гильза":
return new SleeveQueryModifier();
case "Тройник RAUTITAN":
return new TPieceQueryModifier();
case "Flex":
return new FlexPipeQueryModifier();
case "Stabil":
return new StabilPipeQueryModifier();
2023-09-29 16:25:28 +03:00
case "Black":
return new BlackPipeQueryModifier();
2023-09-29 11:20:05 +03:00
default:
return new BypassQueryModifier();
}
}
2023-09-19 14:56:55 +03:00
}