// Make StorageSharedKeyCredential to pass to the serviceClient
 public FileStorageService(ServerConfiguration configuration, IAuthenticatedUserService authenticatedUserService,
                           IEnvironmentInformationProvider environment, ILogger <FileStorageService> logger)
 {
     _authenticatedUserService = authenticatedUserService;
     _environment   = environment;
     _logger        = logger;
     _serviceClient = new DataLakeServiceClient(
         new Uri(configuration.BlobAccount.Endpoint),
         new StorageSharedKeyCredential(configuration.BlobAccount.Name, configuration.BlobAccount.Key));
 }
        protected override void GivenThat()
        {
            base.GivenThat();

            _controlFile = TestControlFileFactory.CreateControlFile();

            _environmentInformationProvider = GenerateMock <IEnvironmentInformationProvider>();
            _directoryInfo = GenerateMock <IDirectoryInfo>();

            SetupData();
            SetupStubs();

            _generator = new CommandGenerator(_environmentInformationProvider);
        }
 /// <summary>
 /// create the generator
 /// </summary>
 public CommandGenerator(IEnvironmentInformationProvider environmentInformationProvider)
 {
     _environmentInformationProvider = environmentInformationProvider;
 }