Inheritance: System.Web.Services.Protocols.SoapHttpClientProtocol
Esempio n. 1
0
 public void WhenICallTheHelloWorldMethod()
 {
     using (var service = new AddTwoNumbers())
     {
         var result = service.HelloWorld();
         ScenarioContext.Current.Add("result", result);
     }
 }
Esempio n. 2
0
        public void WhenICallTheWebServiceToAddTheNumbers()
        {
            using (var service = new AddTwoNumbers())
            {
                var result = service.AddNumbers(
                    ScenarioContext.Current.Get<int>("first"), ScenarioContext.Current.Get<int>("second"));

                ScenarioContext.Current.Add("result", result);
            }
        }