MySql.Data.Entity.Tests.Product.CreateProduct C# (CSharp) Method

CreateProduct() public static method

Create a new Product object.
public static CreateProduct ( global id, global name, global createdDate ) : Product
id global Initial value of the Id property.
name global Initial value of the Name property.
createdDate global Initial value of the CreatedDate property.
return Product
        public static Product CreateProduct(global::System.Int32 id, global::System.String name, global::System.DateTime createdDate)
        {
            Product product = new Product();
            product.Id = id;
            product.Name = name;
            product.CreatedDate = createdDate;
            return product;
        }