public LicensesViewModel(ILicenseProvider licenseProvider) { Ensure.Argument.IsNotNull(licenseProvider, nameof(licenseProvider)); Licenses = licenseProvider.GetAppLicenses() .Select(keyValuePair => new License(keyValuePair.Key, keyValuePair.Value)) .ToImmutableList(); }
public override Task Initialize() { Licenses = licenseProvider .GetAppLicenses() .Select(keyValuePair => new License(keyValuePair.Key, keyValuePair.Value)) .ToList(); return(base.Initialize()); }