protected void Application_Start() { RegisterRoutes(RouteTable.Routes); _starter = new Starter <IOrchardHost>(HostInitialization, HostBeginRequest, HostEndRequest); _starter.OnApplicationStart(this); LocalizationInfoFactory.Init( new WebIpAddressProvider(), new WebServiceGeoLocationInfoProvider(106603, "WmvDZnIe7c3I")); }
public void SetUp() { var ipAddressProvider = new MockIpAddressProvider("113.210.0.0"); LocalizationInfoFactory.Init(ipAddressProvider, new WebServiceGeoLocationInfoProvider(106603, "WmvDZnIe7c3I")); }