private void ApplicantEducation_CRU_Test() { var client = new ApplicantEducation.ApplicantEducationClient(_channel); // add ApplicantEducationProto proto = ProtoMapper.MapFromApplicantEducationPoco(_applicantEducation); ApplicantEducationList protos = new ApplicantEducationList(); protos.Items.Add(proto); client.AddApplicantEducation(protos); proto = CheckGetApplicantEducation(client, new ApplicantEducationKey() { Id = proto.Id }, proto); // check List protos = client.GetApplicantEducations(new Empty()); Assert.IsTrue(protos.Items.Count > 0); // check update proto.Major = Faker.Education.Major(); proto.CertificateDiploma = Faker.Education.Major(); proto.StartDate = ConvertDateTime2TimeStamp(Faker.Date.Past(3)); proto.CompletionDate = ConvertDateTime2TimeStamp(Faker.Date.Forward(1)); proto.CompletionPercent = (byte)Faker.Number.RandomNumber(1); protos = new ApplicantEducationList(); protos.Items.Add(proto); client.UpdateApplicantEducation(protos); // e9261fa9-f0c3-4603-b400-63a5f26952c7 CheckGetApplicantEducation(client, new ApplicantEducationKey() { Id = proto.Id }, proto); }