Пример #1
0
        public async Task GetEmployeeByIDProxyAsync()
        {
            SearchClientProxy client = new SearchClientProxy("");

            var query = "{  employee(id: {instanceID: \"CDC79411-6988-4782-A7B8-2E515D6BF474\",companyID: " +
                        "\"0C08DAA6-F775-42A8-B75E-1B9B685B7977\",  id:\"F2D90173-E2FD-48DF-8358-07B66318810C\" })" + "" +
                        "  { code, fullName, departmentName   } } ";

            var res = await client.QueryAsync <EmployeeDTOGraphql>(query);

            Assert.NotNull(res.Employee);
        }
Пример #2
0
        public async Task GetEmployeeByIDentityUserIDProxyAsync()
        {
            SearchClientProxy client = new SearchClientProxy("");

            var query = "{  employeeIdentity(id: {instanceID: \"CDC79411-6988-4782-A7B8-2E515D6BF474\",companyID: " +
                        "\"0C08DAA6-F775-42A8-B75E-1B9B685B7977\",  identityID:\"13AF40D9-1B28-138F-FCD9-0ECA25747940\" })" + "" +
                        "  { code, fullName, departmentName   } } ";

            var res = await client.QueryAsync <EmployeeIdentityDTOGraphqE>(query);

            Assert.NotNull(res.EmployeeIdentity);
        }