Beispiel #1
0
        static Program() {
            var pathMapper = new PathMapper(AppDomain.CurrentDomain.SetupInformation.ApplicationBase);

            string configPath = pathMapper.MapPath(ConfigFilePath);

            CabinetFactory = new FileCabinetFactory();
            CabinetConfigFactory = new FileCabinetConfigConverterFactory();
            CabinetConfigStore = new FileCabinetProviderConfigStore(configPath, CabinetConfigFactory);

            CabinetFactory
                .RegisterFileSystemProvider()
                .RegisterS3Provider();

            CabinetConfigFactory
                .RegisterFileSystemConfigConverter(pathMapper)
                .RegisterAmazonS3ConfigConverter();

        }
 private FileCabinetProviderConfigStore GetConfigStore() {
     var store = new FileCabinetProviderConfigStore(ConfigPath, mockConverterFactory.Object, mockFs);
     return store;
 }