Beispiel #1
0
            public Void execute(CommandContext commandContext)
            {
                // disable tenant check for the current command
                commandContext.disableTenantCheck();
                assertThat(commandContext.TenantCheckEnabled, @is(false));
                assertThat(commandContext.TenantManager.TenantCheckEnabled, @is(false));

                return(null);
            }
Beispiel #2
0
            public Void execute(CommandContext commandContext)
            {
                commandContext.disableTenantCheck();
                assertThat(commandContext.TenantManager.TenantCheckEnabled, @is(false));

                commandContext.enableTenantCheck();
                assertThat(commandContext.TenantManager.TenantCheckEnabled, @is(true));

                return(null);
            }