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

            var statusId = (await _create.ProductStatus.BuildAsync()).Id;

            var status = await _productStatusesClient.GetAsync(statusId, headers);

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

            var id = await _productStatusesClient.CreateAsync(_status, headers);

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