/// <summary>
        ///
        /// </summary>
        /// <typeparam name="TTenant"></typeparam>
        /// <param name="environment"></param>
        /// <param name="tenantContext"></param>
        public static void SetTenantContext <TTenant>(this IDictionary <string, object> environment, TenantContext <TTenant> tenantContext)
        {
            Ensure.Argument.NotNull(environment, nameof(environment));
            Ensure.Argument.NotNull(tenantContext, nameof(tenantContext));

            environment.AddOrUpdate(TenantContextKey, tenantContext);
        }