Пример #1
0
        public async Task VerifyServiceStatus()
        {
            var status = await fakeapi.VerifyServiceStatus(ServiceDomain.Order);

            Assert.IsType <VerifyServiceStatusResponse>(status);
            Assert.True(status.IsSuccess);
            Assert.True(status.ResponseBody.Status == OtherServiceStatus.ServiceAvailable);
        }
        /// <summary>
        /// Check the status of Newegg Marketplace API
        /// </summary>
        public void VerifyServiceStatus()
        {
            Console.WriteLine("VerifyServiceStatus");

            // Send your request and get response
            var result = otherCall.VerifyServiceStatus(ServiceDomain.Order).Result;

            // Use the data pre you business
            Console.WriteLine(string.Format("There are order service status is {0}.",
                                            result.GetResponseBody().Status));
        }