public void SetUp() { receiver = new FakeReceiver(); channel = new FakeChannel(); config = new N2.Configuration.HostSection(); config.Messaging.Targets.Add(new N2.Configuration.MessageTargetElement { Name = "Remote", Address = "http://nowhere/" }); broker = new MessageBroker(channel, new Fakes.FakeWorker(), new[] { receiver }, config); }
public static void Initialize(N2.Persistence.IPersister persister, ISecurityManager security, ContentActivator activator, N2.Web.IUrlParser urlParser, N2.Web.IWebContext webContext, N2.Configuration.HostSection config) { _webContext = webContext; _security = security; _permissionDeniedHttpCode = config.Web.PermissionDeniedHttpCode; }