[Nunit-core] [Bug 928421] Re: No ProjectService instantiated in CreateDomain

2012-02-08 Thread Julian Taylor
how is a program supposed to know which services it needs to start? or is there a StartAllServices function? At least a better error message than a nullreference exception would be nice. is nunit supposed to be used this way at all? its not very good to break all programs using it when a new serv

[Nunit-core] [Bug 928421] Re: No ProjectService instantiated in CreateDomain

2012-02-08 Thread Charlie Poole
Sorry, I misunderstood and confused the issue. The first issue remains the same, however. Services in NUnit are instantiated by the mainline code. Where dependencies exist, as in the case of DomainManager, which depends on the ProjectService service and the UserSettings service, those services mu

[Nunit-core] [Bug 928421] Re: No ProjectService instantiated in CreateDomain

2012-02-08 Thread Julian Taylor
monodevelop does not need the project service, the domainmanager does: http://bazaar.launchpad.net/~nunit-core/nunitv2/trunk/view/head:/src/ClientUtilities/util/Services/DomainManager.cs#L77 -- You received this bug notification because you are a member of NUnit Developers, which is subscribed to

[Nunit-core] [Bug 928421] Re: No ProjectService instantiated in CreateDomain

2012-02-07 Thread Charlie Poole
There are a couple of problems with this bug and the proposed patch... 1. DomainManager and ProjectService are two internal services used by NUnit. Services never instantiate other services, since that would require them to know about the existence of other services. All services must be created b

[Nunit-core] [Bug 928421] Re: No ProjectService instantiated in CreateDomain

2012-02-07 Thread Julian Taylor
** Patch added: "instantiate-a-ProjectService-when-creating-a-domain.patch" https://bugs.launchpad.net/bugs/928421/+attachment/2722278/+files/instantiate-a-ProjectService-when-creating-a-domain.patch -- You received this bug notification because you are a member of NUnit Developers, which is