public void TestAllYearWheelCategory()
 {
     wheelToTest.IsMudSnow = true;
     wheelToTest.IsWinter  = false;
     extractor             = new PrestoshopWheelPropertyExtractor(wheelToTest, 2, "");
     testValue             = extractor.GetCategory();
     Check(CSVConstants.AllYearWheelCategoryName);
 }
 public void TestSummerCategory()
 {
     wheelToTest.IsMudSnow = false;
     wheelToTest.IsWinter = false;
     extractor = new PrestoshopWheelPropertyExtractor(wheelToTest, 2, "");
     testValue = extractor.GetCategory();
     Check(CSVConstants.SummerWheelCategoryName);
 }
Esempio n. 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 TestWinterCategory()
 {
     testValue = extractor.GetCategory();
     Check(CSVConstants.WinterWheelCategoryName);
 }
Esempio n. 5
0
        public void TestCategory()
        {
            var testValue = extractor.GetCategory();

            Assert.AreEqual(CSVConstants.DefaultCategoryName, testValue);
        }