Exemplo n.º 1
0
        public async void Bitwarden_IsInstalled_Tests(string commandOuput, bool expected)
        {
            mock.Reset();
            var result = CreateCommandResult(commandOuput);
            var t      = Task.FromResult(result);

            mock.Setup(service => service.RunIsCommandInstalled(BitwardenInstallationHandler.BITWARDEN_INSTALLATION_CHECK_COMMAND)).Returns(t);
            var bwi = new BitwardenInstallationHandler(mock.Object);

            bool isInstalled = await bwi.IsInstalled();

            Assert.Equal(expected, isInstalled);
        }
 public BitwardenInstallationViewModel(BitwardenInstallationHandler handler) : base(handler, TITLE, URI, COMMAND, DETAIL)
 {
 }
Exemplo n.º 3
0
 private BitwardenInstallationManager()
 {
     bitwardenInstallationHandler = new BitwardenInstallationHandler(new InstallationService());
 }
 public BitwardenInstallationWindow(BitwardenInstallationHandler installationHandler) : base(new BitwardenInstallationViewModel(installationHandler))
 {
 }