Example #1
0
        private void InitFromSettings()
        {
            TenantContextSettings settings = TenantContextSettings.GetConfig();

            this.TenantCode = settings.DefaultTenantCode;
            this.Enabled    = settings.Enabled;
        }
Example #2
0
 public void TenantContextSettingTest()
 {
     Assert.AreEqual(TenantContextSettings.GetConfig().Enabled, TenantContext.Current.Enabled);
     Assert.AreEqual(TenantContextSettings.GetConfig().DefaultTenantCode, TenantContext.Current.TenantCode);
 }