public async Task OnlineActivationCommand_WhenKeyIsNull_DoesNotCallLicenseChecker()
        {
            CreateCancelledInputInteraction();

            var viewModel = BuildViewModel();

            await viewModel.OnlineActivationAsyncCommand.ExecuteAsync(null);

            _licenseChecker.DidNotReceiveWithAnyArgs().ActivateWithoutSaving("");
        }
Ejemplo n.º 2
0
        public void EnterLicenseKeyCommand_WhenKeyIsNull_DoesNotCallLicenseChecker()
        {
            _expectedLicenseKey       = null;
            _editionFactory           = BuildValidEditionHelper();
            _licenseCheckerActivation = _edition.Activation;

            var viewModel = BuildViewModel(_editionFactory);

            viewModel.EnterLicenseKeyCommand.Execute(null);

            _licenseChecker.DidNotReceiveWithAnyArgs().ActivateWithKey(_expectedLicenseKey);
        }
Ejemplo n.º 3
0
        public void OnlineActivationCommand_WhenKeyIsNull_DoesNotCallLicenseChecker()
        {
            _expectedLicenseKey = null;
            _interactionInvoker.When(x => x.Invoke(Arg.Any <InputInteraction>())).Do(
                x =>
            {
                ((InputInteraction)x[0]).Success   = false;
                ((InputInteraction)x[0]).InputText = _expectedLicenseKey;
            });

            var viewModel = BuildViewModel();

            viewModel.OnlineActivationCommand.Execute(null);

            _licenseChecker.DidNotReceiveWithAnyArgs().ActivateWithoutSaving("");
        }