array.dependency.xml
63 lines
| 1.7 KiB
| application/xml
|
XmlLexer
cin
|
r299 | <?xml version="1.0"?> | |
<container xmlns="http://implab.org/schemas/servicehost/unity.v1.xsd"> | |||
<namespace name="System"/> | |||
<namespace name="System.Collections.Generic"/> | |||
<namespace name="Implab.Components"/> | |||
<namespace name="Implab.ServiceHost.Test.Mock"/> | |||
<register type="Baz"> | |||
<property name="Nuts"> | |||
<!-- should resolve to all registered named dependencies (THIS IS A UNITY FEATURE) --> | |||
<dependency /> | |||
</property> | |||
</register> | |||
<register name="baz2" type="Baz"> | |||
<property name="Nuts"> | |||
<!-- should resolve as is --> | |||
<array> | |||
<dependency/> | |||
<dependency name="Big"/> | |||
<dependency name="Big"/> | |||
<dependency name="Small"/> | |||
<dependency name="Mid"/> | |||
</array> | |||
</property> | |||
</register> | |||
<!-- useless --> | |||
<array> | |||
<dependency name="Big"/> | |||
<dependency name="Big"/> | |||
<dependency name="Big"/> | |||
</array> | |||
<array name="a1"> | |||
<dependency name="Big"/> | |||
<dependency name="Big"/> | |||
<dependency name="Big"/> | |||
</array> | |||
<register name="Big" type="Baz+Nut"> | |||
<property name="Size"> | |||
<value>5</value> | |||
</property> | |||
</register> | |||
<register name="Mid" type="Baz+Nut"> | |||
<property name="Size"> | |||
<value>3</value> | |||
</property> | |||
</register> | |||
<register name="Small" type="Baz+Nut"> | |||
<property name="Size"> | |||
<value>1</value> | |||
</property> | |||
</register> | |||
<register type="Baz+Nut"> | |||
<property name="Size"> | |||
<value>2</value> | |||
</property> | |||
</register> | |||
</container> |