public async Task WhenGet_ThenSuccess()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var attributeId = (await _create.SupplierAttribute.BuildAsync()).Id;

            var attribute = await _supplierAttributesClient.GetAsync(attributeId, headers);

            Assert.NotNull(attribute);
            Assert.Equal(attributeId, attribute.Id);
        }
Example #2
0
        public async Task <SupplierAttribute> BuildAsync()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var id = await _customerAttributesClient.CreateAsync(_attribute, headers);

            return(await _customerAttributesClient.GetAsync(id, headers));
        }