protected bool Equals(Product other) { return string.Equals(DeviceType, other.DeviceType) && string.Equals(Brand, other.Brand) && string.Equals(Model, other.Model) && string.Equals(AdditionalComments, other.AdditionalComments); }
public Product GetProduct(HtmlDocument ceneoPage) { var productCategories = GetCategories(ceneoPage); var categoryDepth = GetCategoryDepth(productCategories); var productProperties = GetProductProperties(ceneoPage.DocumentNode.OuterHtml, categoryDepth); var product = new Product() { Model = GetProductModel(productProperties), Brand = GetProductBrand(productProperties) ?? GetProductBrand(ceneoPage), DeviceType = GetDeviceType(productCategories), AdditionalComments = GetProductAdditionalComments(productProperties) }; return product; }