public void ShouldPreventNoIndexForCategoryAttribute() { var q1 = "NOINDEX"; _productCsv = ProductCsvBuilder.AProductCsv().WithQ1(q1).Build(); var product = _productFactory.Create(_productCsv); Assert.Empty(product.Category); }
public void ShouldPreventNoIndexForDeliveredInAttribute() { var deliveredIn = "NOINDEX"; _productCsv = ProductCsvBuilder.AProductCsv().WithDeliveredIn(deliveredIn).Build(); var product = _productFactory.Create(_productCsv); Assert.Empty(product.DeliveredIn); }
public void ShouldPreventNoIndexForColorCodeAttribute() { var colorCode = "NOINDEX"; _productCsv = ProductCsvBuilder.AProductCsv().WithColorCode(colorCode).Build(); var product = _productFactory.Create(_productCsv); Assert.Empty(product.ColorCode); }
public void ShouldPreventNoIndexForKeyAttribute() { var key = "NOINDEX"; _productCsv = ProductCsvBuilder.AProductCsv().WithKey(key).Build(); var product = _productFactory.Create(_productCsv); Assert.Empty(product.Key); }
private void InitializeMocks() { _productCsv = ProductCsvBuilder.AProductCsv().Build(); var productsCsv = new List <ProductCsv>() { _productCsv }; _csvParser.Setup(x => x.Parse(_csv)).Returns(productsCsv); _product = ProductBuilder.AProduct().Build(); _productFactory.Setup(x => x.Create(_productCsv)).Returns(_product); }
public ProductFactoryTest() { _productCsv = ProductCsvBuilder.AProductCsv().Build(); _productFactory = new ProductFactory(); }