public static Company createCompany() { Company company = null; Address addr = EntityObjectMock.createAddress(); using (IDataReader reader = EntityDataMock.mockCompanyReader()) { company = new Company(reader); company.address = addr; } return(company); }
public static Person createPerson() { Person person = null; Address addr = EntityObjectMock.createAddress(); using (IDataReader reader = EntityDataMock.mockPersonReader()) { person = new Person(reader); person.address = addr; } return(person); }