/// <summary>Constructor.</summary> /// <param name="dataService"> The data service. </param> public ResourceTest(ILocalizationDataService dataService) : base(dataService) { if (dataService.CanMigrate()) { dataService.Migrate(); } }
/// <summary>Constructor.</summary> /// <param name="dataService"> The data service. </param> public RepositoryExportSourceReader(ILocalizationDataService dataService) { _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService)); }
/// <summary> Constructor. </summary> /// <param name="dataService"> The data service. </param> public ResourceSynchronizer(ILocalizationDataService dataService) { _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService)); }
/// <summary> Constructor. </summary> /// <param name="localizationDataService"> The localization data service. </param> /// <param name="localizer"> The localizer. </param> public LocalizationController(ILocalizationDataService localizationDataService, IStringLocalizer <Resources.Controllers.LocalizationResource> localizer) { _localizationDataService = localizationDataService; _localizer = localizer; }
/// <summary> Specialised constructor for use only by derived class. </summary> /// <param name="dataService"> The data service. </param> protected DataServiceTest(ILocalizationDataService dataService) { DataService = dataService; }
/// <summary> Constructor. </summary> /// <param name="dataService"> The data service. </param> public GetTranslationHandler(ILocalizationDataService dataService) { _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService)); }
/// <summary> Constructor. </summary> /// <param name="dataService"> The data service. </param> public GetAllResourcesHandler(ILocalizationDataService dataService) { _dataService = dataService ?? throw new ArgumentNullException(nameof(dataService)); }