public TCommunication Clone() { var result = new TCommunication(); result.Update(this); return(result); }
public static TCommunication CreateRandom() { var result = new TCommunication { phone = phonePrefixes[rnd.Next(phonePrefixes.Length)] + "-" + rnd.Next(80000) + 10000, mobilePhone = mobilePrefixes[rnd.Next(mobilePrefixes.Length)] + "-" + rnd.Next(80000) + 10000, email = mailPrefixes[rnd.Next(mailPrefixes.Length)] + rnd.Next(1000) + "@" + domainNames[rnd.Next(domainNames.Length)] }; return(result); }