private void ApplicantEducation_D_Test()
        {
            var client = new ApplicantEducation.ApplicantEducationClient(_channel);

            ApplicantEducationProto proto = client.GetApplicantEducation(new ApplicantEducationKey()
            {
                Id = _applicantEducation.Id.ToString()
            });
            ApplicantEducationList protos = new ApplicantEducationList();

            protos.Items.Add(proto);
            client.DeleteApplicantEducation(protos);
            proto = null;
            try
            {
                proto = client.GetApplicantEducation(new ApplicantEducationKey()
                {
                    Id = _applicantEducation.Id.ToString()
                });
            }
            catch (RpcException)
            {
            }
            Assert.IsNull(proto);
        }
        private ApplicantEducationProto CheckGetApplicantEducation(ApplicantEducation.ApplicantEducationClient client
                                                                   , ApplicantEducationKey key, ApplicantEducationProto compare = null)
        {
            ApplicantEducationProto proto = null;

            try
            {
                proto = client.GetApplicantEducation(key);
            }
            catch (RpcException)
            {
                Assert.Fail();
            }
            Assert.IsNotNull(proto);
            Assert.AreEqual(proto.Id, key.Id);
            if (compare != null)
            {
                Assert.AreEqual(proto.Applicant, compare.Applicant);
                Assert.AreEqual(proto.Major, compare.Major);
                Assert.AreEqual(proto.CertificateDiploma, compare.CertificateDiploma);
                Assert.AreEqual(proto.StartDate.ToDateTime().Date, compare.StartDate.ToDateTime().Date);
                Assert.AreEqual(proto.CompletionDate.ToDateTime().Date, compare.CompletionDate.ToDateTime().Date);
                Assert.AreEqual(proto.CompletionPercent, compare.CompletionPercent);
            }
            return(proto);
        }