Пример #1
0
        public EmploymentTests()
        {
            this.employee = new PersonBuilder(this.Session).WithLastName("slave").Build();

            this.employment = new EmploymentBuilder(this.Session)
                              .WithEmployee(this.employee)
                              .WithFromDate(this.Session.Now())
                              .Build();

            this.Session.Derive();
            this.Session.Commit();
        }
Пример #2
0
 private void InstantiateObjects(ISession session)
 {
     this.employee             = (Person)session.Instantiate(this.employee);
     this.internalOrganisation = (InternalOrganisation)session.Instantiate(this.internalOrganisation);
     this.employment           = (Employment)session.Instantiate(this.employment);
 }