public Guid CreateCompanyAddress(CompanyAddress address) { address.Id = _fakeObjectGenerator.GetNewGuid(); _fakeObjectGenerator.CompanyAddresses.Add(address); return(address.Id); }
public Contact ResolveInsertContact(Contact contact, bool overrideId = true) { contact.Address = null; contact.Companies = null; contact.Id = overrideId ? _fakeObjectGenerator.GetNewGuid() : contact.Id; return(contact); }
private Company ResolveInsertCompany(Company company, bool overrideId = true) { company.MainAddress = null; company.OtherAddresses = null; company.Id = overrideId ? _fakeObjectGenerator.GetNewGuid() : company.Id; return(company); }