Ejemplo n.º 1
0
        public void TestAddProductType()
        {
            _target.SetFieldOrProperty(MEMBER_VARIABLE_NAME_PRODUCT_TYPES, new List <string> {
                "Type 1", "Type 2", "Type 3"
            });
            _productTypesManager.AddProductType("Type 4");
            List <string> expectedProductTypes = (List <string>)_target.GetFieldOrProperty(MEMBER_VARIABLE_NAME_PRODUCT_TYPES);

            Assert.AreEqual(expectedProductTypes.Count, 4);
            Assert.AreEqual(expectedProductTypes[3], "Type 4");
        }
 /// <summary>
 /// Adds the type of the product.
 /// </summary>
 public void AddProductType(string productType)
 {
     _productTypesManager.AddProductType(productType);
 }