Ejemplo n.º 1
0
        public async Task WhenGet_ThenSuccess()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var typeId = (await _create.OrderType.BuildAsync()).Id;

            var type = await _orderTypesClient.GetAsync(typeId, headers);

            Assert.NotNull(type);
            Assert.Equal(typeId, type.Id);
        }
Ejemplo n.º 2
0
        public async Task <OrderType> BuildAsync()
        {
            var headers = await _defaultRequestHeadersService.GetAsync();

            var id = await _orderTypesClient.CreateAsync(_type, headers);

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