public void child_entity_is_persisted_linked_with_the_parent() { var parentEntity = new ParentEntity(); parentEntity.AddChildEntityNotReferencingParentEntity(); UnitOfWork.Save(parentEntity); UnitOfWork.Clear(); parentEntity = UnitOfWork.Get <ParentEntity>(parentEntity.Id); parentEntity.ChildrenNotReferencingParent.Count().ShouldBe(1); }