static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("BasicHttpBinding_IHelloWorld"); string result = client.SayHello(); System.Console.WriteLine(result); System.Console.ReadLine(); }
static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("BasicHttpBinding_IHelloWorld"); Name person = new Name(); person.First = "Jay"; person.Last = "Lars"; Console.WriteLine(client.SayHello(person)); Console.ReadLine(); }
static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("NetTcpBinding_IHelloWorld"); Name person = new Name(); person.First = "Eyebe"; person.Last = "Yespapi"; Console.WriteLine(client.SayHello(person)); Console.ReadLine(); }
static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("BasicHttpBinding_IHelloWorld"); Name person = new Name(); person.FirstName = "Julius"; person.LastName = "Bacosa"; Console.WriteLine(client.SayHello(person)); Console.ReadLine(); }
static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("WSHttpBinding_IHelloWorld"); Name person = new Name(); person.First = "John"; person.Last = "MUtabazi"; Console.WriteLine(client.SayHello(person)); Console.ReadLine(); }
static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("BasicHttpBinding_IHelloWorld"); Name person = new Name(); person.First = "Christopher"; person.Last = "Tan"; Console.WriteLine(client.SayHello(person)); Console.ReadKey(); }
static void Main(string[] args) { HelloWorldClient client = new HelloWorldClient("NetTcpBinding_IHelloWorld"); Name person = new Name(); person.First = "Howard"; person.Last = "Zhou"; Console.WriteLine(client.SayHello(person)); Console.ReadLine(); }
static void Main(string[] args) { // initializing the client proxy will initialize necessary channel too. HelloWorldClient client = new HelloWorldClient("NetTcpBinding_IHelloWorld"); Name person = new Name(); person.First = "Mohit"; person.Last = "Sharma"; Console.WriteLine(client.SayHello(person)); Console.ReadLine(); }
public void HelloNull() { // initialize string userName = null; string expectedResult = "Hello "; string realResult; HelloWorldClient myService = new HelloWorldClient(); // test body realResult = myService.SayHello(userName); // assert Assert.AreEqual(expectedResult, realResult); }
public void HelloDearUser() { //initialize string username = "******"; string expectedResult = "Hello Dear User"; string realResult; HelloWorldClient myservice = new HelloWorldClient(); //test body realResult = myservice.SayHello(username); //assert Assert.AreEqual(expectedResult, realResult); }
public void HelloDearUser() { //init string userName = null; string expectedResult = "Hello Dear User"; string realResult; HelloWorldClient myService = new HelloWorldClient(); //test body realResult = myService.SayHello(userName); //assert Assert.AreEqual(expectedResult, realResult); }
static void Main(string[] args) { var client = new HelloWorldClient("BasicHttpBinding_IHelloWorld"); var name = new Name(); Console.Write("Firstname: "); name.FName = Console.ReadLine(); Console.Write("Lastname: "); name.LName = Console.ReadLine(); Console.WriteLine(client.SayHello(name)); Console.WriteLine(); Console.ReadKey(); }
public void TestSayHelloEmptyName() { // Tres partes de las pruebas unitarias. //--------------------------------------///////// // 1. Preparar el escenario string myName = string.Empty; string resultadoEsperado = "Hello world"; string resultadoReal; HelloWorldClient client = new HelloWorldClient(); // 2. Invoco al metodo correspondiente resultadoReal = client.SayHello(myName); // 3. Comparacion de resultados, Todos los resultados se van por Assert Assert.AreEqual(resultadoEsperado, resultadoReal, string.Format( mensajeAssert, resultadoEsperado.ToString(), resultadoReal.ToString()) ); }