Exemplo n.º 1
0
        public async Task can_get_version_number_from_assembly()
        {
            //arrange
            //act
            var response = await _classUnderTest.ExecuteAsync(CancellationToken.None).ConfigureAwait(false);

            //assert
            response.Should().NotBeNull();
            response.Version.Should().NotBeNull();
            response.Version.InformationalVersion.Should().Contain("1.0.0.0");
        }
Exemplo n.º 2
0
        public async Task <GetServiceDetailsResponse> ExecuteAsync(CancellationToken cancellationToken)
        {
            var response = await _getVersionUseCase.ExecuteAsync(cancellationToken).ConfigureAwait(false);

            if (_serviceDetails.Version == null)
            {
                _serviceDetails.Version = new ServiceDetailVersion();
            }

            _serviceDetails.Version.Version = response.Version.InformationalVersion;

            var serviceDetailsResponse = new GetServiceDetailsResponse
            {
                ServiceDetails = _serviceDetails
            };

            return(serviceDetailsResponse);
        }