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(); }
private void GenerateDummyData() { foreach (var item in client.QueryAll()) { people.Add((PeopleModel)item); } }