public async Task WhenGet_ThenSuccess() { var headers = await _defaultRequestHeadersService.GetAsync(); var attributeId = (await _create.CustomerAttribute.BuildAsync()).Id; var attribute = await _customerAttributesClient.GetAsync(attributeId, headers); Assert.NotNull(attribute); Assert.Equal(attributeId, attribute.Id); }
public async Task <CustomerAttribute> BuildAsync() { var headers = await _defaultRequestHeadersService.GetAsync(); var id = await _customerAttributesClient.CreateAsync(_attribute, headers); return(await _customerAttributesClient.GetAsync(id, headers)); }