RhSolutions-AddIn/RhSolutions.AddIn/Services/SleevesCalculator.cs
2023-06-20 11:50:11 +03:00

14 lines
416 B
C#

namespace RhSolutions.Services;
public class SleevesCalculator : ISleevesCaluculator
{
public Dictionary<Product, double> CalculateSleeves(Dictionary<Product, double> products)
{
int counter = products.Where(kvp => kvp.Key.ProductLines.Contains("RAUTITAN")).Count();
return new Dictionary<Product, double>()
{
[new Product("11600011001")] = counter
};
}
}