Testing.SalesTerritory.CreateSalesTerritory C# (CSharp) Method

CreateSalesTerritory() public static method

Create a new SalesTerritory object.
public static CreateSalesTerritory ( global territoryID, global name, global countryRegionCode, global group, global salesYTD, global salesLastYear, global costYTD, global costLastYear, global rowguid, global modifiedDate ) : SalesTerritory
territoryID global Initial value of the TerritoryID property.
name global Initial value of the Name property.
countryRegionCode global Initial value of the CountryRegionCode property.
group global Initial value of the Group property.
salesYTD global Initial value of the SalesYTD property.
salesLastYear global Initial value of the SalesLastYear property.
costYTD global Initial value of the CostYTD property.
costLastYear global Initial value of the CostLastYear property.
rowguid global Initial value of the rowguid property.
modifiedDate global Initial value of the ModifiedDate property.
return SalesTerritory
        public static SalesTerritory CreateSalesTerritory(global::System.Int32 territoryID, global::System.String name, global::System.String countryRegionCode, global::System.String group, global::System.Decimal salesYTD, global::System.Decimal salesLastYear, global::System.Decimal costYTD, global::System.Decimal costLastYear, global::System.Guid rowguid, global::System.DateTime modifiedDate)
        {
            SalesTerritory salesTerritory = new SalesTerritory();
            salesTerritory.TerritoryID = territoryID;
            salesTerritory.Name = name;
            salesTerritory.CountryRegionCode = countryRegionCode;
            salesTerritory.Group = group;
            salesTerritory.SalesYTD = salesYTD;
            salesTerritory.SalesLastYear = salesLastYear;
            salesTerritory.CostYTD = costYTD;
            salesTerritory.CostLastYear = costLastYear;
            salesTerritory.rowguid = rowguid;
            salesTerritory.ModifiedDate = modifiedDate;
            return salesTerritory;
        }