Exemple #1
0
        public async Task ShouldReturnJsonStringIfServiceIsWorking()
        {
            var client   = new PaymentHttpClient();
            var response = await client.GetResponseAsync("http://localhost:43494", "abc");

            Assert.AreNotEqual("", response);
        }
Exemple #2
0
        public async Task ShouldThrowExceptionIfServiceNotFound()
        {
            var client   = new PaymentHttpClient();
            var response = await client.GetResponseAsync("some invalid url", "abc");

            Assert.AreNotEqual("", response);
        }