예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to test console");
            //Testing StudentServiceHost
            WcfServiceDefinitionClient studentServiceClient = new WcfServiceDefinitionClient();

            Console.WriteLine("Testing Student Service");
            var result = studentServiceClient.QueryStudents();

            Console.WriteLine(result.ToString());

            //Testing ServiceLayer Service Host
            ServiceLayerWcfServiceDefinitionClient serviceLayerServiceClient = new ServiceLayerWcfServiceDefinitionClient();

            Console.WriteLine("Testing Service Layer Service");
            var result2 = serviceLayerServiceClient.QueryAll();

            Console.WriteLine(result2.ToString());

            //Testin Person Service Host
            AsmxServiceSoapClient personServiceClient = new AsmxServiceSoapClient();

            Console.WriteLine("Testing Person Service");
            var result3 = personServiceClient.QueryPersons();

            Console.WriteLine(result3.ToString());

            Console.ReadLine();
        }
예제 #2
0
 private void GenerateDummyData()
 {
     foreach (var item in client.QueryAll())
     {
         people.Add((PeopleModel)item);
     }
 }