mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-25 03:10:07 +01:00
Dictionaries DB structure refactored
This commit is contained in:
1 parent
9b80314b92
commit
6c10c6c654
25 files changed
+251
-117
No files matched your search
@@ -80,10 +80,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateAchievementsDictionary()
|
||||
{
|
||||
List<AchievementDictionary> targetAchievementDictionaries = null;
|
||||
List<IAchievementDictionary> targetAchievementDictionaries = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateAchievements(It.IsAny<List<AchievementDictionary>>()))
|
||||
.Callback((List<AchievementDictionary> dictionary) => targetAchievementDictionaries = dictionary);
|
||||
.Setup(d => d.UpdateAchievements(It.IsAny<List<IAchievementDictionary>>()))
|
||||
.Callback((List<IAchievementDictionary> dictionary) => targetAchievementDictionaries = dictionary);
|
||||
|
||||
await _achievementDictionariesUpdater.Update();
|
||||
|
||||
|
||||
@@ -82,10 +82,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateLanguagesDictionary()
|
||||
{
|
||||
List<LanguageDictionary> languageDictionary = null;
|
||||
List<ILanguageDictionary> languageDictionary = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateLanguages(It.IsAny<List<LanguageDictionary>>()))
|
||||
.Callback((List<LanguageDictionary> dictionary) => languageDictionary = dictionary);
|
||||
.Setup(d => d.UpdateLanguages(It.IsAny<List<ILanguageDictionary>>()))
|
||||
.Callback((List<ILanguageDictionary> dictionary) => languageDictionary = dictionary);
|
||||
|
||||
await _staticDictionariesUpdater.Update();
|
||||
|
||||
@@ -104,10 +104,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateNationsDictionary()
|
||||
{
|
||||
List<NationDictionary> nations = null;
|
||||
List<INationDictionary> nations = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateNations(It.IsAny<List<NationDictionary>>()))
|
||||
.Callback((List<NationDictionary> dictionary) => nations = dictionary);
|
||||
.Setup(d => d.UpdateNations(It.IsAny<List<INationDictionary>>()))
|
||||
.Callback((List<INationDictionary> dictionary) => nations = dictionary);
|
||||
|
||||
await _staticDictionariesUpdater.Update();
|
||||
|
||||
@@ -132,10 +132,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateVehicleTypesDictionary()
|
||||
{
|
||||
List<VehicleTypeDictionary> vehicleTypes = null;
|
||||
List<IVehicleTypeDictionary> vehicleTypes = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateVehicleTypes(It.IsAny<List<VehicleTypeDictionary>>()))
|
||||
.Callback((List<VehicleTypeDictionary> dictionary) => vehicleTypes = dictionary);
|
||||
.Setup(d => d.UpdateVehicleTypes(It.IsAny<List<IVehicleTypeDictionary>>()))
|
||||
.Callback((List<IVehicleTypeDictionary> dictionary) => vehicleTypes = dictionary);
|
||||
|
||||
await _staticDictionariesUpdater.Update();
|
||||
|
||||
@@ -160,10 +160,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateClanRolesDictionary()
|
||||
{
|
||||
List<ClanRoleDictionary> clanRoles = null;
|
||||
List<IClanRoleDictionary> clanRoles = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateClanRoles(It.IsAny<List<ClanRoleDictionary>>()))
|
||||
.Callback((List<ClanRoleDictionary> dictionary) => clanRoles = dictionary);
|
||||
.Setup(d => d.UpdateClanRoles(It.IsAny<List<IClanRoleDictionary>>()))
|
||||
.Callback((List<IClanRoleDictionary> dictionary) => clanRoles = dictionary);
|
||||
|
||||
await _staticDictionariesUpdater.Update();
|
||||
|
||||
@@ -188,10 +188,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateAchievementsSectionsDictionary()
|
||||
{
|
||||
List<AchievementSectionDictionary> achievementsSections = null;
|
||||
List<IAchievementSectionDictionary> achievementsSections = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateAchievementsSections(It.IsAny<List<AchievementSectionDictionary>>()))
|
||||
.Callback((List<AchievementSectionDictionary> dictionary) => achievementsSections = dictionary);
|
||||
.Setup(d => d.UpdateAchievementsSections(It.IsAny<List<IAchievementSectionDictionary>>()))
|
||||
.Callback((List<IAchievementSectionDictionary> dictionary) => achievementsSections = dictionary);
|
||||
|
||||
await _staticDictionariesUpdater.Update();
|
||||
|
||||
|
||||
@@ -80,10 +80,10 @@ namespace WotBlitzStatisticsPro.Tests.DictionariesTests
|
||||
[Test]
|
||||
public async Task ShouldSaveAppropriateVehiclesDictionary()
|
||||
{
|
||||
List<VehiclesDictionary> targetVehicleDictionary = null;
|
||||
List<IVehiclesDictionary> targetVehicleDictionary = null;
|
||||
_dataAccessorMock
|
||||
.Setup(d => d.UpdateVehicles(It.IsAny<List<VehiclesDictionary>>()))
|
||||
.Callback((List<VehiclesDictionary> dictionary) => targetVehicleDictionary = dictionary);
|
||||
.Setup(d => d.UpdateVehicles(It.IsAny<List<IVehiclesDictionary>>()))
|
||||
.Callback((List<IVehiclesDictionary> dictionary) => targetVehicleDictionary = dictionary);
|
||||
|
||||
await _vehiclesDictionariesUpdater.Update();
|
||||
|
||||
|
||||
Reference in new issue
Block a user