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