public void Init()
 {
     _moduleMock = new Mock <ModularityModule>();
     _module     = _moduleMock.Object;
     _counter    = 0;
     ModularityApplicationObserver.GetContext = () => new Mock <HttpContextBase>().Object;
     ModularityApplicationObserver.Modules.Enqueue(_module);
     _observer = new ModularityApplicationObserver();
 }
 public void Init()
 {
     _moduleMock = new Mock<ModularityModule>();
     _module = _moduleMock.Object;
     _counter = 0;
     ModularityApplicationObserver.GetContext = () => new Mock<HttpContextBase>().Object;
     ModularityApplicationObserver.Modules.Enqueue(_module);
     _observer = new ModularityApplicationObserver();
 }
 public void ShouldInitializeModulesFromConfiguration()
 {
     ModularityApplicationObserver.AddConfiguredModules();
     Assert.IsTrue(ModularityApplicationObserver.Modules.Any(m => m.GetType() == typeof(ModuleStub)));
 }