public void Should_map_all_properties() { var pexipConfig = new ServicesConfiguration(); pexipConfig.PexipSelfTestNode = "self-test.node"; var response = PexipConfigurationMapper.MapPexipConfigToResponse(pexipConfig); response.PexipSelfTestNode.Should().BeEquivalentTo(pexipConfig.PexipSelfTestNode); }
public IActionResult GetPexipServicesConfiguration() { _logger.LogDebug($"GetPexipServicesConfiguration"); if (_servicesConfiguration == null) { _logger.LogWarning($"Unable to retrieve the pexip configuration!"); return(NotFound()); } var response = PexipConfigurationMapper.MapPexipConfigToResponse(_servicesConfiguration); return(Ok(response)); }