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(); }
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); }