Exemple #1
0
        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"));
        }
Exemple #2
0
        public void SetUp()
        {
            var ipAddressProvider = new MockIpAddressProvider("113.210.0.0");

            LocalizationInfoFactory.Init(ipAddressProvider, new WebServiceGeoLocationInfoProvider(106603, "WmvDZnIe7c3I"));
        }