private void ClearCache(ModuleAction Command) { // synchronize cache PortalModule.SynchronizeModule(); // Redirect to the same page to pick up changes Response.Redirect(Request.RawUrl, true); }
protected int GetNextActionID() { int retValue = Null.NullInteger; if (PortalModule != null) { retValue = PortalModule.GetNextActionID(); } return(retValue); }
public void Load_NoErrors_MapAllExtensions() { var module = new PortalModule(); var application = new Mock<IPortalApplication>(); module.Load(application.Object); application.Verify(m => m.MapRoute("/v5/ClientSettings", It.IsAny<Func<IExtension>>())); application.Verify(m => m.MapRoute("/v5/Group", It.IsAny<Func<IExtension>>())); application.Verify(m => m.MapRoute("/v5/Subscription", It.IsAny<Func<IExtension>>())); application.Verify(m => m.MapRoute("/v5/User", It.IsAny<Func<IExtension>>())); application.Verify(m => m.MapRoute("/v5/UserSettings", It.IsAny<Func<IExtension>>())); application.Verify(m => m.MapRoute("/v5/View", It.IsAny<Func<IExtension>>())); }