using System; using System.Collections.Generic; using Centron.BusinessLogic.Administration.Licensing; using Centron.Interfaces.Administration.Logins; namespace Centron.Tests.EndToEnd.Infrastructure.Fixtures { public class LicensingAssemblyFixture { public LicensingAssemblyFixture() { var products = new Dictionary { [LicenseGuids.Centron] = "c-entron.NET", [LicenseGuids.RiversuiteInventory] = "Riversuite Inventory", [LicenseGuids.TaskManagementReportServer] = "Reportserver", [LicenseGuids.CRMPro] = "CRMPro", [LicenseGuids.ProductionManagement] = "Production", [LicenseGuids.ServiceBoardWebDev] = "Tasks", [LicenseGuids.ServiceBoard] = "Serviceboard", [LicenseGuids.MspModule] = "Modul MSP", [LicenseGuids.DocumentProcessing] = "Modul Dokumentenweiterverarbeitung", [LicenseGuids.WebCart2] = "WebCart 2.0", [LicenseGuids.OnlineBanking_FinApi] = "Online-Banking (finAPI)", [LicenseGuids.PasswordManager] = "Passwort-Manager" }; LicenseManager.Initialize(LicenseManager.SettingsForTests(products)); LicenseManager.Instance.LoadLicenses().Wait(); } } }