Changes ApplicationContext to expect arguments of DatabaseContext and ServiceContext for it to be

constructed. Changes DatabaseContext to not be a singleton. Changes ServiceContext not to be a singleton.
Removed ServicesFactory. Updated unit tests to support new changes.
This commit is contained in:
Shannon Deminick
2012-12-14 08:06:32 +05:00
parent e5ddcc756c
commit a9cb337a96
22 changed files with 262 additions and 178 deletions

View File

@@ -28,7 +28,7 @@ namespace Umbraco.Core.ObjectResolution
using (new ReadLock(ResolversLock))
{
if (_resolver == null)
throw new InvalidOperationException("Current has not been initialized. You must initialize Current before trying to read it.");
throw new InvalidOperationException("Current has not been initialized on " + typeof(TResolver) + ". You must initialize Current before trying to read it.");
return _resolver;
}
}