public async Task CreateAsync() { var gatewayName = Guid.NewGuid().ToString("N").ToLowerInvariant(); var config = await _ocelotAppService.CreateAsync(new OcelotCreateDto { Name = gatewayName }).ConfigureAwait(false); config.Name.ShouldBe(gatewayName); config.Id.ShouldNotBe(default);
public async Task <OcelotDto> CreateAsync(OcelotCreateDto input) { return(await _ocelotGlobalConfigurationService.CreateAsync(input)); }