static ScrewTurnWikiExtensions() { Collectors.InitCollectors(); Collectors.AddProvider(typeof(SettingsStorageProviderV60), typeof(SettingsStorageProviderV60).Assembly, "", typeof(ISettingsStorageProviderV60)); Collectors.AddProvider(typeof(PagesStorageProviderV60), typeof(PagesStorageProviderV60).Assembly, "", typeof(IPagesStorageProviderV60)); Collectors.AddGlobalSettingsStorageProvider(typeof(GlobalSettingsStorageProviderV60), typeof(GlobalSettingsStorageProviderV60).Assembly); Host.Instance = new Host(); ApplicationSettings.Instance = new ApplicationSettings(); Exchanger.ResourceExchanger = new ResourceExchanger(); }
public void SetUp() { mocks = new MockRepository(); System.Web.HttpContext.Current = new System.Web.HttpContext(new DummyRequest()); Collectors.InitCollectors(); Collectors.AddGlobalSettingsStorageProvider(typeof(DummyGlobalSettingsStorageProvider), System.Reflection.Assembly.GetAssembly(typeof(DummyGlobalSettingsStorageProvider))); Collectors.AddProvider(typeof(DummySettingsStorageProvider), System.Reflection.Assembly.GetAssembly(typeof(DummySettingsStorageProvider)), "", typeof(ISettingsStorageProviderV40)); Collectors.AddProvider(typeof(DummyPagesStorageProvider), System.Reflection.Assembly.GetAssembly(typeof(DummyPagesStorageProvider)), "", typeof(IPagesStorageProviderV40)); Host.Instance = new Host(); }