public static Company CreateCompany(global::System.Int32 id, global::System.String name, CommonAddress address) { Company company = new Company(); company.Id = id; company.Name = name; company.Address = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address"); return company; }