@@ -15,7 +15,7 @@ public void AppendTo_WithValidArguments_Suceeds()
1515 var container = ContainerFactory . New ( ) ;
1616
1717 // Act
18- container . Collections . AppendTo ( typeof ( object ) , CreateRegistration ( container ) ) ;
18+ container . Collection . AppendTo ( typeof ( object ) , CreateRegistration ( container ) ) ;
1919 }
2020
2121 [ TestMethod ]
@@ -28,7 +28,7 @@ public void AppendTo_WithNullServiceTypeArgument_ThrowsException()
2828
2929 // Act
3030 Action action =
31- ( ) => container . Collections . AppendTo ( invalidServiceType , CreateRegistration ( container ) ) ;
31+ ( ) => container . Collection . AppendTo ( invalidServiceType , CreateRegistration ( container ) ) ;
3232
3333 // Assert
3434 AssertThat . ThrowsWithParamName < ArgumentNullException > ( "serviceType" , action ) ;
@@ -43,7 +43,7 @@ public void AppendTo_WithNullRegistrationArgument_ThrowsException()
4343 Registration invalidRegistration = null ;
4444
4545 // Act
46- Action action = ( ) => container . Collections . AppendTo ( typeof ( object ) , invalidRegistration ) ;
46+ Action action = ( ) => container . Collection . AppendTo ( typeof ( object ) , invalidRegistration ) ;
4747
4848 // Assert
4949 AssertThat . ThrowsWithParamName < ArgumentNullException > ( "registration" , action ) ;
@@ -60,7 +60,7 @@ public void AppendTo_WithRegistrationForDifferentContainer_ThrowsException()
6060 Registration invalidRegistration = CreateRegistration ( differentContainer ) ;
6161
6262 // Act
63- Action action = ( ) => container . Collections . AppendTo ( typeof ( object ) , invalidRegistration ) ;
63+ Action action = ( ) => container . Collection . AppendTo ( typeof ( object ) , invalidRegistration ) ;
6464
6565 // Assert
6666 AssertThat . ThrowsWithParamName < ArgumentException > ( "registration" , action ) ;
@@ -76,7 +76,7 @@ public void AppendTo_ForUnregisteredCollection_ResolvesThatRegistrationWhenReque
7676
7777 var registration = Lifestyle . Transient . CreateRegistration < PluginImpl > ( container ) ;
7878
79- container . Collections . AppendTo ( typeof ( IPlugin ) , registration ) ;
79+ container . Collection . AppendTo ( typeof ( IPlugin ) , registration ) ;
8080
8181 // Act
8282 var instance = container . GetAllInstances < IPlugin > ( ) . Single ( ) ;
@@ -94,8 +94,8 @@ public void AppendTo_CalledTwice_ResolvesBothRegistrationsWhenRequested()
9494 var registration1 = Lifestyle . Transient . CreateRegistration < PluginImpl > ( container ) ;
9595 var registration2 = Lifestyle . Transient . CreateRegistration < PluginImpl2 > ( container ) ;
9696
97- container . Collections . AppendTo ( typeof ( IPlugin ) , registration1 ) ;
98- container . Collections . AppendTo ( typeof ( IPlugin ) , registration2 ) ;
97+ container . Collection . AppendTo ( typeof ( IPlugin ) , registration1 ) ;
98+ container . Collection . AppendTo ( typeof ( IPlugin ) , registration2 ) ;
9999
100100 // Act
101101 var instances = container . GetAllInstances < IPlugin > ( ) . ToArray ( ) ;
@@ -115,7 +115,7 @@ public void AppendTo_CalledAfterRegisterCollectionWithTypes_CombinedAllRegistrat
115115
116116 var registration = Lifestyle . Transient . CreateRegistration < PluginImpl2 > ( container ) ;
117117
118- container . Collections . AppendTo ( typeof ( IPlugin ) , registration ) ;
118+ container . Collection . AppendTo ( typeof ( IPlugin ) , registration ) ;
119119
120120 // Act
121121 var instances = container . GetAllInstances < IPlugin > ( ) . ToArray ( ) ;
@@ -136,7 +136,7 @@ public void AppendTo_CalledAfterRegisterCollectionWithRegistration_CombinedAllRe
136136
137137 container . RegisterCollection ( typeof ( IPlugin ) , new [ ] { registration1 } ) ;
138138
139- container . Collections . AppendTo ( typeof ( IPlugin ) , registration2 ) ;
139+ container . Collection . AppendTo ( typeof ( IPlugin ) , registration2 ) ;
140140
141141 // Act
142142 var instances = container . GetAllInstances < IPlugin > ( ) . ToArray ( ) ;
@@ -155,12 +155,12 @@ public void AppendTo_CalledAfterTheFirstItemIsRequested_ThrowsExpectedException(
155155 var registration1 = Lifestyle . Transient . CreateRegistration < PluginImpl > ( container ) ;
156156 var registration2 = Lifestyle . Transient . CreateRegistration < PluginImpl2 > ( container ) ;
157157
158- container . Collections . AppendTo ( typeof ( IPlugin ) , registration1 ) ;
158+ container . Collection . AppendTo ( typeof ( IPlugin ) , registration1 ) ;
159159
160160 var instances = container . GetAllInstances < IPlugin > ( ) . ToArray ( ) ;
161161
162162 // Act
163- Action action = ( ) => container . Collections . AppendTo ( typeof ( IPlugin ) , registration2 ) ;
163+ Action action = ( ) => container . Collection . AppendTo ( typeof ( IPlugin ) , registration2 ) ;
164164
165165 // Assert
166166 AssertThat . Throws < InvalidOperationException > ( action ) ;
@@ -179,7 +179,7 @@ public void AppendTo_OnContainerUncontrolledCollection_ThrowsExpressiveException
179179 var registration = Lifestyle . Transient . CreateRegistration < PluginImpl > ( container ) ;
180180
181181 // Act
182- Action action = ( ) => container . Collections . AppendTo ( typeof ( IPlugin ) , registration ) ;
182+ Action action = ( ) => container . Collection . AppendTo ( typeof ( IPlugin ) , registration ) ;
183183
184184 // Assert
185185 AssertThat . ThrowsWithExceptionMessageContains < NotSupportedException > ( @"
@@ -205,7 +205,7 @@ public void GetAllInstances_RegistrationAppendedToExistingOpenGenericRegistratio
205205
206206 var registration = Lifestyle . Transient . CreateRegistration < StructEventHandler > ( container ) ;
207207
208- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
208+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
209209
210210 // Act
211211 Type [ ] actualHandlerTypes = container . GetAllInstances ( typeof ( IEventHandler < StructEvent > ) )
@@ -231,7 +231,7 @@ public void GetAllInstances_RegistrationPrependedToExistingOpenGenericRegistrati
231231
232232 var registration = Lifestyle . Transient . CreateRegistration < StructEventHandler > ( container ) ;
233233
234- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
234+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
235235
236236 container . RegisterCollection ( typeof ( IEventHandler < > ) , new [ ] { typeof ( NewConstraintEventHandler < > ) } ) ;
237237
@@ -258,9 +258,9 @@ public void GetAllInstances_MultipleAppendedOpenGenericTypes_ResolvesTheExpected
258258
259259 var container = ContainerFactory . New ( ) ;
260260
261- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( NewConstraintEventHandler < > ) ) ;
262- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( StructConstraintEventHandler < > ) ) ;
263- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( AuditableEventEventHandler < > ) ) ;
261+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( NewConstraintEventHandler < > ) ) ;
262+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( StructConstraintEventHandler < > ) ) ;
263+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( AuditableEventEventHandler < > ) ) ;
264264
265265 // Act
266266 Type [ ] actualHandlerTypes = container . GetAllInstances ( typeof ( IEventHandler < StructEvent > ) )
@@ -285,14 +285,14 @@ public void GetAllInstances_MultipleAppendedOpenGenericTypesMixedWithClosedGener
285285
286286 var container = ContainerFactory . New ( ) ;
287287
288- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( NewConstraintEventHandler < > ) ) ;
288+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( NewConstraintEventHandler < > ) ) ;
289289
290290 container . RegisterCollection ( typeof ( IEventHandler < StructEvent > ) , new [ ]
291291 {
292292 typeof ( AuditableEventEventHandler < StructEvent > )
293293 } ) ;
294294
295- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( StructConstraintEventHandler < > ) ) ;
295+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( StructConstraintEventHandler < > ) ) ;
296296
297297 // Act
298298 Type [ ] actualHandlerTypes = container . GetAllInstances ( typeof ( IEventHandler < StructEvent > ) )
@@ -319,8 +319,8 @@ public void GetAllInstances_MultipleOpenGenericTypesAppendedToPreRegistrationWit
319319
320320 container . RegisterCollection ( typeof ( IEventHandler < > ) , new [ ] { typeof ( NewConstraintEventHandler < > ) } ) ;
321321
322- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( StructConstraintEventHandler < > ) ) ;
323- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , typeof ( AuditableEventEventHandler < > ) ) ;
322+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( StructConstraintEventHandler < > ) ) ;
323+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , typeof ( AuditableEventEventHandler < > ) ) ;
324324
325325 // Act
326326 Type [ ] actualHandlerTypes = container . GetAllInstances ( typeof ( IEventHandler < StructEvent > ) )
@@ -348,7 +348,7 @@ public void GetAllInstances_RegistrationAppendedToExistingRegistrationForSameClo
348348 var registration = Lifestyle . Singleton
349349 . CreateRegistration ( typeof ( StructConstraintEventHandler < StructEvent > ) , container ) ;
350350
351- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
351+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
352352
353353 // Act
354354 var handler1 = container . GetAllInstances < IEventHandler < StructEvent > > ( ) . Last ( ) ;
@@ -375,7 +375,7 @@ public void GetAllInstances_DelegatedRegistrationAppendedToExistingRegistrationF
375375 ( ) => new StructConstraintEventHandler < StructEvent > ( ) ,
376376 container ) ;
377377
378- container . Collections . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
378+ container . Collection . AppendTo ( typeof ( IEventHandler < > ) , registration ) ;
379379
380380 // Act
381381 var handler1 = container . GetAllInstances < IEventHandler < StructEvent > > ( ) . Last ( ) ;
0 commit comments