示例#1
0
        public Guid CreateCompanyAddress(CompanyAddress address)
        {
            address.Id = _fakeObjectGenerator.GetNewGuid();

            _fakeObjectGenerator.CompanyAddresses.Add(address);

            return(address.Id);
        }
示例#2
0
        public Contact ResolveInsertContact(Contact contact, bool overrideId = true)
        {
            contact.Address   = null;
            contact.Companies = null;

            contact.Id = overrideId ? _fakeObjectGenerator.GetNewGuid() : contact.Id;

            return(contact);
        }
示例#3
0
        private Company ResolveInsertCompany(Company company, bool overrideId = true)
        {
            company.MainAddress    = null;
            company.OtherAddresses = null;

            company.Id = overrideId ? _fakeObjectGenerator.GetNewGuid() : company.Id;

            return(company);
        }