Testing.SalesPerson.CreateSalesPerson C# (CSharp) Method

CreateSalesPerson() public static method

Create a new SalesPerson object.
public static CreateSalesPerson ( global salesPersonID, global bonus, global commissionPct, global salesYTD, global salesLastYear, global rowguid, global modifiedDate ) : SalesPerson
salesPersonID global Initial value of the SalesPersonID property.
bonus global Initial value of the Bonus property.
commissionPct global Initial value of the CommissionPct property.
salesYTD global Initial value of the SalesYTD property.
salesLastYear global Initial value of the SalesLastYear property.
rowguid global Initial value of the rowguid property.
modifiedDate global Initial value of the ModifiedDate property.
return SalesPerson
        public static SalesPerson CreateSalesPerson(global::System.Int32 salesPersonID, global::System.Decimal bonus, global::System.Decimal commissionPct, global::System.Decimal salesYTD, global::System.Decimal salesLastYear, global::System.Guid rowguid, global::System.DateTime modifiedDate)
        {
            SalesPerson salesPerson = new SalesPerson();
            salesPerson.SalesPersonID = salesPersonID;
            salesPerson.Bonus = bonus;
            salesPerson.CommissionPct = commissionPct;
            salesPerson.SalesYTD = salesYTD;
            salesPerson.SalesLastYear = salesLastYear;
            salesPerson.rowguid = rowguid;
            salesPerson.ModifiedDate = modifiedDate;
            return salesPerson;
        }