Exemple #1
0
 public void Setup()
 {
     _monsterProcessor = new MonsterProcessor();
     _filesToParse     = new List <string> {
         "TestData.mm_sample.txt"
     };
 }
 public MonsterManualManager(ITableStorage tableStorage, GlobalSearchTermRepository globalSearchTermRepository, ILocalization localization)
 {
     _tableStorage = tableStorage;
     _globalSearchTermRepository = globalSearchTermRepository;
     _localization     = localization;
     _monsterProcessor = new MonsterProcessor();
 }
        public StarshipsOfTheGalaxyManager(IServiceProvider serviceProvider, ILocalization localization)
        {
            _localization = localization;
            _tableStorage = serviceProvider.GetService <IAzureTableStorage>();
            _globalSearchTermRepository    = serviceProvider.GetService <GlobalSearchTermRepository>();
            _starshipDeploymentProcessor   = new StarshipDeploymentProcessor();
            _starshipEquipmentProcessor    = new StarshipEquipmentProcessor();
            _starshipModificationProcessor = new StarshipModificationProcessor();
            _starshipSizeProcessor         = new StarshipSizeProcessor();
            _starshipVentureProcessor      = new StarshipVentureProcessor();
            _starshipChapterRulesProcessor = new StarshipChapterRulesProcessor(_globalSearchTermRepository);

            var blobServiceClient = serviceProvider.GetService <BlobServiceClient>();

            _blobContainerClient = blobServiceClient.GetBlobContainerClient($"starships-rules-{_localization.Language}");
        }
        public WretchedHivesManager(IServiceProvider serviceProvider, ILocalization localization)
        {
            _tableStorage = serviceProvider.GetService <IAzureTableStorage>();
            _globalSearchTermRepository = serviceProvider.GetService <GlobalSearchTermRepository>();
            _localization = localization;
            _wretchedHivesEquipmentProcessor    = new WretchedHivesEquipmentProcessor();
            _wretchedHivesChapterRulesProcessor = new WretchedHivesChapterRulesProcessor(_globalSearchTermRepository);

            var blobServiceClient = serviceProvider.GetService <BlobServiceClient>();

            _blobContainerClient = blobServiceClient.GetBlobContainerClient($"wretched-hives-rules-{_localization.Language}");

            _weaponPropertyProcessor = new WeaponPropertyProcessor(ContentType.Core, _localization.WretchedHivesWeaponProperties);

            _armorPropertyProcessor = new ArmorPropertyProcessor(ContentType.Core, _localization.WretchedHivesArmorProperties);
        }
Exemple #5
0
        public StarshipsOfTheGalaxyManager(ITableStorage tableStorage, CloudStorageAccount cloudStorageAccount,
                                           GlobalSearchTermRepository globalSearchTermRepository, ILocalization localization)
        {
            _localization = localization;
            _tableStorage = tableStorage;
            _globalSearchTermRepository    = globalSearchTermRepository;
            _starshipDeploymentProcessor   = new StarshipDeploymentProcessor();
            _starshipEquipmentProcessor    = new StarshipEquipmentProcessor();
            _starshipModificationProcessor = new StarshipModificationProcessor();
            _starshipSizeProcessor         = new StarshipSizeProcessor();
            _starshipVentureProcessor      = new StarshipVentureProcessor();
            _starshipChapterRulesProcessor = new StarshipChapterRulesProcessor(globalSearchTermRepository);

            var cloudBlobClient = cloudStorageAccount.CreateCloudBlobClient();

            _cloudBlobContainer = cloudBlobClient.GetContainerReference($"starships-rules-{_localization.Language}");
        }
Exemple #6
0
        public WretchedHivesManager(ITableStorage tableStorage, CloudStorageAccount cloudStorageAccount,
                                    GlobalSearchTermRepository globalSearchTermRepository, ILocalization localization)
        {
            _tableStorage = tableStorage;
            _globalSearchTermRepository = globalSearchTermRepository;
            _localization = localization;
            _wretchedHivesEquipmentProcessor    = new WretchedHivesEquipmentProcessor();
            _wretchedHivesChapterRulesProcessor = new WretchedHivesChapterRulesProcessor(globalSearchTermRepository);

            var cloudBlobClient = cloudStorageAccount.CreateCloudBlobClient();

            _cloudBlobContainer = cloudBlobClient.GetContainerReference($"wretched-hives-rules-{_localization.Language}");

            _weaponPropertyProcessor = new WeaponPropertyProcessor(ContentType.ExpandedContent, _localization.WretchedHivesWeaponProperties);

            _armorPropertyProcessor = new ArmorPropertyProcessor(ContentType.Core, _localization.WretchedHivesArmorProperties);
        }
 public ReferenceTableManager(ITableStorage tableStorage, ILocalization localization)
 {
     _tableStorage            = tableStorage;
     _localization            = localization;
     _referenceTableProcessor = new ReferenceTableProcessor();
 }