public async Task WhenGet_ThenSuccess() { var headers = await _defaultRequestHeadersService.GetAsync(); var statusId = (await _create.CustomerSource.BuildAsync()).Id; var status = await _customerSourcesClient.GetAsync(statusId, headers); Assert.NotNull(status); Assert.Equal(statusId, status.Id); }
public async Task <CustomerSource> BuildAsync() { var headers = await _defaultRequestHeadersService.GetAsync(); var id = await _customerSourcesClient.CreateAsync(_source, headers); return(await _customerSourcesClient.GetAsync(id, headers)); }