static void TestManualSumTwoNumbersWithOMiau(LazyCatServiceOMiauManualClient client)
        {
            var result = client.SumWithOMiauAuth(2, 5);

            result.ShouldBe(7);

            result = client.SumWithOMiauAuth(5, 3);
            result.ShouldBe(8);
        }
Exemple #2
0
        public static LazyCatServiceOMiauManualClient CreateOMiauAuthClient(
            string endpointUrl, ITokenService tokenService)
        {
            var uri    = new Uri(endpointUrl);
            var client = new LazyCatServiceOMiauManualClient(
                Helpers.MakeSoap11BindingWithAnonymousAuth(uri), new EndpointAddress(uri), tokenService);

            return(client);
        }
        static async Task TestManualSumTwoNumbersWithOMiauAsync(LazyCatServiceOMiauManualClient client)
        {
            var result = await client.SumWithOMiauAuthAsync(2, 5);

            result.ShouldBe(7);

            result = await client.SumWithOMiauAuthAsync(5, 3);

            result.ShouldBe(8);
        }