Exemplo n.º 1
0
        private async Task LoadVersions()
        {
            ServiceControlVersion = "(Detecting...)";

            var version = await _serviceControl.GetVersion();

            ServiceControlVersion = version ?? "(Not Connected)";
        }
Exemplo n.º 2
0
        private async Task LoadVersions()
        {
            ServiceControlVersion = DetectingServiceControlVersion;

            var version = await _serviceControl.GetVersion();

            ServiceControlVersion = version ?? NotConnectedToServiceControl;
        }
        public void Should_display_service_control_version()
        {
            const string ServiceControlVersion = "0.8.0-Unstable379";

            serviceControl.GetVersion().Returns(ServiceControlVersion);

            ((IActivate)sut).Activate();

            sut.ServiceControlVersion.ShouldBe(ServiceControlVersion);
        }
Exemplo n.º 4
0
        public void Should_display_service_control_version()
        {
            const string ServiceControlVersion = "0.8.0-Unstable379";

            _serviceControl.GetVersion().Returns(Task.FromResult(ServiceControlVersion));

            AsyncHelper.Run(() => _sut.Activate());

            _sut.ServiceControlVersion.ShouldBe(ServiceControlVersion);
        }
Exemplo n.º 5
0
        void LoadVersions()
        {
            if (serviceControl == null)
            {
                return;
            }

            ServiceControlVersion = DetectingServiceControlVersion;

            var version = serviceControl.GetVersion();

            ServiceControlVersion = version ?? NotConnectedToServiceControl;
        }