Today I added the option to create a new DxfLinePattern in the document during layer creation.
The creation dialog now have an access to the document so the line pattern is saved even if it is not used for the newly created layer.

The next steps are to add a line pattern manager and a selector in the toolbar. Then I could focus on the unit tests.