public double Calculate(Product product) { if (product is null) { throw new ArgumentNullException(nameof(product)); } //Some rating calculations based on specifications. return(_thirdPartyExpertSuggestionService.GetRating(product.Name, 12)); }
public double GetRating(string productName, double screenSize) { double screenSizeInch = _lengthConverterService.ConvertCmToInch(screenSize); return(_thirdPartyExpertSuggestionService.GetRating(productName, screenSizeInch)); }