private void InitFromSettings() { TenantContextSettings settings = TenantContextSettings.GetConfig(); this.TenantCode = settings.DefaultTenantCode; this.Enabled = settings.Enabled; }
public void TenantContextSettingTest() { Assert.AreEqual(TenantContextSettings.GetConfig().Enabled, TenantContext.Current.Enabled); Assert.AreEqual(TenantContextSettings.GetConfig().DefaultTenantCode, TenantContext.Current.TenantCode); }