Testing.Product.CreateProduct C# (CSharp) Method

CreateProduct() public static method

Create a new Product object.
public static CreateProduct ( global productID, global name, global productNumber, global makeFlag, global finishedGoodsFlag, global safetyStockLevel, global reorderPoint, global standardCost, global listPrice, global daysToManufacture, global sellStartDate, global rowguid, global modifiedDate ) : Product
productID global Initial value of the ProductID property.
name global Initial value of the Name property.
productNumber global Initial value of the ProductNumber property.
makeFlag global Initial value of the MakeFlag property.
finishedGoodsFlag global Initial value of the FinishedGoodsFlag property.
safetyStockLevel global Initial value of the SafetyStockLevel property.
reorderPoint global Initial value of the ReorderPoint property.
standardCost global Initial value of the StandardCost property.
listPrice global Initial value of the ListPrice property.
daysToManufacture global Initial value of the DaysToManufacture property.
sellStartDate global Initial value of the SellStartDate property.
rowguid global Initial value of the rowguid property.
modifiedDate global Initial value of the ModifiedDate property.
return Product
        public static Product CreateProduct(global::System.Int32 productID, global::System.String name, global::System.String productNumber, global::System.Boolean makeFlag, global::System.Boolean finishedGoodsFlag, global::System.Int16 safetyStockLevel, global::System.Int16 reorderPoint, global::System.Decimal standardCost, global::System.Decimal listPrice, global::System.Int32 daysToManufacture, global::System.DateTime sellStartDate, global::System.Guid rowguid, global::System.DateTime modifiedDate)
        {
            Product product = new Product();
            product.ProductID = productID;
            product.Name = name;
            product.ProductNumber = productNumber;
            product.MakeFlag = makeFlag;
            product.FinishedGoodsFlag = finishedGoodsFlag;
            product.SafetyStockLevel = safetyStockLevel;
            product.ReorderPoint = reorderPoint;
            product.StandardCost = standardCost;
            product.ListPrice = listPrice;
            product.DaysToManufacture = daysToManufacture;
            product.SellStartDate = sellStartDate;
            product.rowguid = rowguid;
            product.ModifiedDate = modifiedDate;
            return product;
        }