public async void GetOrderAsync()
        {
            //http://www.mocky.io/v2/57209cae0f0000a208387242 - one order

            IEcwidOrdersClient client = new EcwidClient(_credentials)
            {
                Settings =
                {
                    ApiUrl = "http://www.mocky.io/v2/57209e580f0000f20838724a" //response with one order.
                }
            };

            var result = await client.GetOrderAsync(18);

            Assert.Equal(18, result.OrderNumber);
        }
Exemple #2
0
        public async void GetOrderAsync_ReturnCorrectNumbers()
        {
            //http://www.mocky.io/v2/57209cae0f0000a208387242 - one order

            IEcwidOrdersClient client = new EcwidClient(_credentials)
            {
                Settings =
                {
//                    Mute by mutation testing FirstOrDefault
//                    ApiUrl = "http://www.mocky.io/v2/57209e580f0000f20838724a" //response with one order.
                    ApiUrl = "http://www.mocky.io/v2/5c83049d3000002b006b0bf3" //response with one order.
                }
            };

            var result = await client.GetOrderAsync(18);

            Assert.Equal(18, result.OrderNumber);
        }