public EffectiveAccessViewModelFactory(IDialogCoordinator dialogCoordinator, ILogger <EffectiveAccessViewModel> logger, IAuthorizationInformationBuilder authorizationBuilder, IDirectory directory, IComputerTargetProvider computerTargetProvider) { this.dialogCoordinator = dialogCoordinator; this.logger = logger; this.directory = directory; this.authorizationBuilder = authorizationBuilder; this.computerTargetProvider = computerTargetProvider; }
public EffectiveAccessViewModel(IAuthorizationInformationBuilder authorizationBuilder, IDialogCoordinator dialogCoordinator, IDirectory directory, SecurityDescriptorTargetsViewModel targets, ILogger <EffectiveAccessViewModel> logger, IComputerTargetProvider computerTargetProvider) { this.authorizationBuilder = authorizationBuilder; this.dialogCoordinator = dialogCoordinator; this.directory = directory; this.targets = targets; this.computerTargetProvider = computerTargetProvider; this.logger = logger; }
public AuthorizationInformationBuilder(IOptionsSnapshot <AuthorizationOptions> options, ILogger <AuthorizationInformationBuilder> logger, IPowerShellSecurityDescriptorGenerator powershell, IAuthorizationInformationMemoryCache authzCache, IComputerTargetProvider computerTargetProvider, IAuthorizationContextProvider authorizationContextProvider, IAmsLicenseManager licenseManager) { this.logger = logger; this.options = options.Value; this.powershell = powershell; this.authzCache = authzCache; this.computerTargetProvider = computerTargetProvider; this.authorizationContextProvider = authorizationContextProvider; this.licenseManager = licenseManager; }
public SecurityDescriptorTargetsViewModelFactory(IDialogCoordinator dialogCoordinator, ISecurityDescriptorTargetViewModelFactory factory, Func <INotifyModelChangedEventPublisher> eventPublisher, ILogger <SecurityDescriptorTargetsViewModel> logger, IDirectory directory, IComputerTargetProvider computerTargetProvider, IEffectiveAccessViewModelFactory effectiveAccessFactory, IShellExecuteProvider shellExecuteProvider) { this.dialogCoordinator = dialogCoordinator; this.factory = factory; this.eventPublisher = eventPublisher; this.logger = logger; this.directory = directory; this.computerTargetProvider = computerTargetProvider; this.effectiveAccessFactory = effectiveAccessFactory; this.shellExecuteProvider = shellExecuteProvider; }
public SecurityDescriptorTargetsViewModel(IList <SecurityDescriptorTarget> model, ISecurityDescriptorTargetViewModelFactory factory, IDialogCoordinator dialogCoordinator, INotifyModelChangedEventPublisher eventPublisher, ILogger <SecurityDescriptorTargetsViewModel> logger, IDirectory directory, IComputerTargetProvider computerTargetProvider, IEffectiveAccessViewModelFactory effectiveAccessFactory, IShellExecuteProvider shellExecuteProvider) { this.factory = factory; this.Model = model; this.dialogCoordinator = dialogCoordinator; this.logger = logger; this.directory = directory; this.computerTargetProvider = computerTargetProvider; this.effectiveAccessFactory = effectiveAccessFactory; this.shellExecuteProvider = shellExecuteProvider; this.customComparer = new SecurityDescriptorTargetViewModelComparer(); this.ChildDisplaySettings = new SecurityDescriptorTargetViewModelDisplaySettings(); this.eventPublisher = eventPublisher; this.Initialization = this.Initialize(); }
public void TestInitialize() { this.discoveryServices = new DiscoveryServices(Mock.Of <ILogger <DiscoveryServices> >()); directory = new ActiveDirectory(discoveryServices); cache = new AuthorizationInformationMemoryCache(); logger = Global.LogFactory.CreateLogger <AuthorizationInformationBuilder>(); powershell = Mock.Of <IPowerShellSecurityDescriptorGenerator>(); var mockLicenseManager = new Mock <IAmsLicenseManager>(); mockLicenseManager.Setup(l => l.IsEnterpriseEdition()).Returns(true); mockLicenseManager.Setup(l => l.IsFeatureCoveredByFullLicense(It.IsAny <LicensedFeatures>())).Returns(true); mockLicenseManager.Setup(l => l.IsFeatureEnabled(It.IsAny <LicensedFeatures>())).Returns(true); this.licenseManager = mockLicenseManager.Object; targetDataProvider = new ComputerTargetProvider(directory, new TargetDataProvider(new TargetDataCache(), Global.LogFactory.CreateLogger <TargetDataProvider>()), Global.LogFactory.CreateLogger <ComputerTargetProvider>()); authorizationContextProvider = new AuthorizationContextProvider(Mock.Of <IOptions <AuthorizationOptions> >(), Global.LogFactory.CreateLogger <AuthorizationContextProvider>(), discoveryServices); }