public void MinUpdateMedServiceProfile() { using (MqServiceClient mq = new MqServiceClient()) { Credentials cr = new Credentials { Organization = idLpu, Token = guid }; ProfileMedService medServ = (new SetData()).MinUpdateMedServiceProfile(); mq.UpdateMedServiceProfile(cr, medServ); Options options = new Options { DateReport = OptionData.options.DateReport, Target = new ReferralTarget { Lpu = new Coding { Code = idLpu, System = Dictionary.MO, Version = "1" } }, ReferralInfo = new ReferralInfo { ProfileMedService = medServ.IdProfileMedService } }; var result = mq.GetQueueInfo(cr, options); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public void UpdateMedServiceProfile(Credentials cr, ProfileMedService p) { try { client.UpdateMedServiceProfile(cr, p); if (new TestProfileMedService(p) != TestProfileMedService.BuildProfileMedServiceFromDataBaseData(cr.Organization)) { Global.errors1.Add("Несовпадение"); Global.errors1.AddRange(Global.errors2); } } catch (System.ServiceModel.FaultException <MqTests.WebReference.MqFault> e) { getErrors(e.Detail); Global.errors1.Add("ЭКСЕПШН"); } }
public void FullUpdateMedServiceProfile() { using (MqServiceClient mq = new MqServiceClient()) { Credentials cr = new Credentials { Organization = idLpu, Token = guid }; ProfileMedService medServ = (new SetData()).FullUpdateMedServiceProfile(); mq.UpdateMedServiceProfile(cr, medServ); Options options = new Options { DateReport = OptionData.options.DateReport, Target = new ReferralTarget { Lpu = new Coding { Code = idLpu, System = Dictionary.MO, Version = "1" } }, ReferralInfo = new ReferralInfo { ProfileMedService = medServ.IdProfileMedService } }; var result = mq.GetQueueInfo(cr, options); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }