Well we can approach it twofold:
- assert that the controller class is one of the services exposed
- assert that the controller class is the only service exposed
I would actually make it the latter, mostly to keep things simple.
Krzysztof
On 06/09/2011 5:27 PM, Daniel Lidström wrote:
Hello,
I'm wondering how to change one of the tutorial configuration tests
(see
http://docs.castleproject.org/Windsor.Windsor-tutorial-part-three-a-testing-your-first-installer.ashx)
for Windsor 3.0. Here's the test for 2.5:
[Fact]
public void All_controllers_expose_themselves_as_service()
{
var controllersWithWrongName = GetHandlersFor(typeof(IController),
containerWithControllers)
.Where(controller => controller.Service !=
controller.ComponentModel.Implementation)
.ToArray();
Assert.Empty(controllersWithWrongName);
}
|With the Service property now on ComponentModel as Services, what
would be the correct change?
|
Regards,
Daniel Lidström
--
You received this message because you are subscribed to the Google
Groups "Castle Project Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/castle-project-users/-/Thq82umwEIwJ.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Castle
Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.