예제 #1
0
        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);
        }
예제 #2
0
        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);
        }