// SPDX-License-Identifier: Apache-2.0
import { BaseCommandTest } from './base-command-test.js';
import { InjectTokens } from '../../../../src/core/dependency-injection/inject-tokens.js';
import { container } from 'tsyringe-neo';
import { accountCreationShouldSucceed } from '../../../test-utility.js';
import { it } from 'mocha';
export class AccountTest extends BaseCommandTest {
    static accountCreationShouldSucceed(options) {
        const { testName, namespace, testLogger: logger } = options;
        it(`${testName}: account creation should succeed`, async () => {
            const accountManager = container.resolve(InjectTokens.AccountManager);
            const remoteConfig = container.resolve(InjectTokens.RemoteConfigRuntimeState);
            await remoteConfig.load(namespace);
            accountCreationShouldSucceed(accountManager, namespace, remoteConfig, logger);
        });
    }
}
//# sourceMappingURL=account-test.js.map