Пример #1
0
        public void TestIdOfArticleWithNullValues()
        {
            testArticle.Description2 = null;
            extractor = new PrestoshopPropertyExtractor(testArticle, 2);
            var testValue = extractor.GetArticleId();

            Assert.AreEqual(testArticle.Description, testValue);
        }
Пример #2
0
        public void TestIdOfArticle()
        {
            var testValue    = extractor.GetArticleId();
            var description1 = testArticle.Description;
            var description2 = testArticle.Description2;

            Assert.AreEqual(description1.Trim() + description2.Trim(), testValue);
        }
Пример #3
0
 public string GetCSVLine()
 {
     return(String.Format(CSVConstants.PrestoFormatLine,
                          propertyExtractor.GetArticleId(),
                          propertyExtractor.GetArticleName(),
                          propertyExtractor.GetCategory(),
                          propertyExtractor.GetMargedPrice(),
                          propertyExtractor.GetArticleOriginalPrice(),
                          propertyExtractor.GetManufactorer(),
                          propertyExtractor.GetAvailability(),
                          propertyExtractor.GetShortDescription(),
                          propertyExtractor.GetDescription(),
                          propertyExtractor.GetArticleTags(),
                          propertyExtractor.GetImageUrls(),
                          propertyExtractor.GetArticleFeatures()
                          ));
 }
 public void TestIdOfArticleWithNullValues()
 {
     testArticle.Description2 = null;
     extractor = new PrestoshopPropertyExtractor(testArticle, 2);
     var testValue = extractor.GetArticleId();
     Assert.AreEqual(testArticle.Description, testValue);
 }