//public static OrderPeep OrderPeep(int? counter) //{ // var rtValue = new OrderPeep(); // rtValue.OrderId = counter.HasValue ? counter.Value : 99; // rtValue.WorkgroupId = counter.HasValue ? counter.Value : 99; // rtValue.OrderStatusCodeId = Purchasing.Core.Domain.OrderStatusCode.Codes.Purchaser; // rtValue.UserId = counter.Extra(); // return rtValue; //} public static RelatedWorkgroups RelatedWorkgroups(int?counter) { var rtValue = new RelatedWorkgroups(); rtValue.WorkgroupId = counter.HasValue ? counter.Value : 99; rtValue.WorkgroupName = counter.Extra(); rtValue.PrimaryOrganizationId = "Org" + counter.Extra(); rtValue.AdminWorkgroupId = 1; rtValue.AdminOrgId = counter.Extra(); return(rtValue); }
//public static OrderPeep OrderPeep(int? counter) //{ // var rtValue = new OrderPeep(); // rtValue.OrderId = counter.HasValue ? counter.Value : 99; // rtValue.WorkgroupId = counter.HasValue ? counter.Value : 99; // rtValue.OrderStatusCodeId = Purchasing.Core.Domain.OrderStatusCode.Codes.Purchaser; // rtValue.UserId = counter.Extra(); // return rtValue; //} public static RelatedWorkgroups RelatedWorkgroups(int? counter) { var rtValue = new RelatedWorkgroups(); rtValue.WorkgroupId = counter.HasValue ? counter.Value : 99; rtValue.WorkgroupName = counter.Extra(); rtValue.PrimaryOrganizationId = "Org" + counter.Extra(); rtValue.AdminWorkgroupId = 1; rtValue.AdminOrgId = counter.Extra(); return rtValue; }