public async Task <ProductAttribute> BuildAsync()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

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

            return(await _productAttributesClient.GetAsync(id, headers));
        }
        public async Task WhenCreate_ThenSuccess()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var attribute = new ProductAttribute
            {
                Id        = Guid.NewGuid(),
                Type      = AttributeType.Text,
                Key       = "Test".WithGuid(),
                IsDeleted = false
            };

            var createdAttributeId = await _productAttributesClient.CreateAsync(attribute, headers);

            var createdAttribute = await _productAttributesClient.GetAsync(createdAttributeId, headers);

            Assert.NotNull(createdAttribute);
            Assert.Equal(createdAttributeId, createdAttribute.Id);
            Assert.Equal(attribute.Type, createdAttribute.Type);
            Assert.Equal(attribute.Key, createdAttribute.Key);
            Assert.Equal(attribute.IsDeleted, createdAttribute.IsDeleted);
            Assert.True(createdAttribute.CreateDateTime.IsMoreThanMinValue());
        }