public static IArticle GetWheelForDescription(string descriptionString, string description2String) { IWheel wheel = new Wheel(); var heightWidthPattern = AWheelOperations.GetPattern(descriptionString, heightWidthOperation.GetRegexPattern()); if (heightWidthPattern.Equals(string.Empty)) { return wheel; } wheel = heightWidthOperation.SetValueOnWheel(wheel, heightWidthPattern); descriptionString = AWheelOperations.CutFromString(descriptionString, heightWidthPattern); wheel = GetWheelWithGivenWheelOperations(descriptionString, wheel, wheelsOperations); wheel = GetWheelWithGivenWheelOperations(description2String, wheel, extraWheelsOperations); return wheel; }
public void TestCreationOfWheelExtractor() { IArticle article = new Wheel(); var result = articlePropertyExtractorFactory.GetPropertyExtractor(article); Assert.IsTrue(result is PrestoshopWheelPropertyExtractor); }