public PropertyQueryGroupViewModel(PropertyQueryGroup model)
 {
     WebServiceName = model.WebServiceName;
     QueryGroupId = model.QueryGroupId;
     Title = model.Title;
     Queries = model.Queries.Select(q => new PropertyQueryInfoViewModel(q)).ToList();
 }
        public void Test_GetAllPropertyQueries_getWebServiceName()
        {
            PropertyQueryGroup propQueryGroup = new PropertyQueryGroup();

            var actual = _webService.GetAllPropertyQueries();
            var t = actual[0].WebServiceName;

            if (t.GetType() != typeof(string))
            {
                Assert.Fail();
            }
        }
        public void Test_GetAllPropertyQueries_getQueries()
        {
            PropertyQueryGroup propQueryGroup = new PropertyQueryGroup();

            var actual = _webService.GetAllPropertyQueries();
            var t = actual[0].Queries[0];

            if (!(t is PropertyQuery))
            {
                Assert.Fail();
            }
        }