"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockADLSAdapter = void 0;
const Storage_1 = require("../../Storage");
class MockADLSAdapter extends Storage_1.ADLSAdapter {
    constructor(httpClientOrHostName, root, sharedKey) {
        if (typeof httpClientOrHostName === 'string') {
            super(httpClientOrHostName, root !== null && root !== void 0 ? root : 'root', sharedKey !== null && sharedKey !== void 0 ? sharedKey : process.env['ADLS_SHAREDKEY']);
        }
        else {
            super('hostname', 'root', process.env['ADLS_SHAREDKEY']);
            this.httpClient = httpClientOrHostName;
        }
    }
}
exports.MockADLSAdapter = MockADLSAdapter;
//# sourceMappingURL=MockADLSAdapter.js.map