public void Setup() { _activation = new Activation(); _activationHelper = Substitute.For <IActivationHelper>(); _activationHelper.Activation.Returns(x => _activation); _interactionInvoker = Substitute.For <IInteractionInvoker>(); _gpoSettings = Substitute.For <IGpoSettings>(); }
public LicenseCondition(ISettingsManager settingsManager, ITranslator translator, IActivationHelper activationHelper, IInteractionInvoker interactionInvoker, IVersionHelper versionHelper, ApplicationNameProvider applicationNameProvider) { _settingsManager = settingsManager; _translator = translator; _activationHelper = activationHelper; _interactionInvoker = interactionInvoker; _versionHelper = versionHelper; _applicationNameProvider = applicationNameProvider; }
public LicenseWindowViewModel(LicenseTabViewModel licenseTabViewModel, ApplicationNameProvider applicationNameProvider, IVersionHelper versionHelper, IUserGuideHelper userGuideHelper, IActivationHelper activationHelper) { LicenseTabViewModel = licenseTabViewModel; _userGuideHelper = userGuideHelper; _activationHelper = activationHelper; Title = applicationNameProvider.ApplicationName + " " + versionHelper.FormatWithThreeDigits(); ShowHelpCommand = new DelegateCommand <KeyEventArgs>(ShowHelpCommandExecute); licenseTabViewModel.CloseLicenseWindowEvent += CloseWhenLicenseValid; }
public OfflineActivationViewModel(IProcessStarter process, IUserGuideHelper userGuideHelper, IActivationHelper activationHelper, ITranslator translator) { _processStarter = process; _userGuideHelper = userGuideHelper; _activationHelper = activationHelper; _invalidLicenseKeySyntaxMessage = translator.GetTranslation("OfflineActivationViewModel", "InvalidLicenseKeySyntax"); OkCommand = new DelegateCommand(OkCommandExecute, OkCommandCanExecute); OpenOfflineActivationUrlCommand = new DelegateCommand(OpenOfflineActivationUrlCommandExecute); ShowHelpCommand = new DelegateCommand <KeyEventArgs>(ShowHelpCommandExecute); }
public void SetUp() { _checkAllStartupConditions = Substitute.For <ICheckAllStartupConditions>(); _activation = new Activation(); _activationHelper = Substitute.For <IActivationHelper>(); _activationHelper.Activation.Returns(_activation); _licenseServerHelper = Substitute.For <ILicenseServerHelper>(); _licenseChecker = Substitute.For <ILicenseChecker>(); _licenseServerHelper.BuildLicenseChecker(RegistryHive.LocalMachine) .Returns(_licenseChecker); _storeLicenseForAllUsersStart = new StoreLicenseForAllUsersStart(_checkAllStartupConditions, _activationHelper, _licenseServerHelper); }
public LicenseTabViewModel(IProcessStarter processStarter, IActivationHelper activationHelper, ITranslator translator, IInteractionInvoker interactionInvoker, IDispatcher dispatcher) { _processStarter = processStarter; _activationHelper = activationHelper; _interactionInvoker = interactionInvoker; _dispatcher = dispatcher; Translator = translator; _lastActivationKey = LicenseKey; OnlineActivationCommand = new DelegateCommand(OnlineActivationCommandExecute, OnlineActivationCommandCanExecute); OfflineActivationCommand = new DelegateCommand(OfflineActivationCommandExecute, OfflineActivationCommandCanExecute); ManageLicensesCommand = new DelegateCommand(ManageLicensesCommandExecute); }
public MsActivationsController(IActivationHelper activationHelper, ILogger <MsActivationsController> logger) { this.logger = logger; this.activationHelper = activationHelper; }
public StaticPropertiesHack(ITranslator translator, IUserGuideHelper userGuideHelper, IActivationHelper activationHelper) { _translator = translator; _userGuideHelper = userGuideHelper; _activationHelper = activationHelper; }
public StoreLicenseForAllUsersStart(ICheckAllStartupConditions checkAllStartupConditions, IActivationHelper activationHelper, ILicenseServerHelper licenseServerHelper) : base(checkAllStartupConditions) { _activationHelper = activationHelper; _licenseServerHelper = licenseServerHelper; }