public void MinAgreedFromSourcedMo() { using (MqServiceClient mq = new MqServiceClient()) { Credentials cr = new Credentials { Organization = idLpu, Token = guid }; Referral referral = (new SetData()).MinRegister(); var result = mq.Register(cr, referral); referral = (new SetData()).MinAgreedFromSourcedMo(result.IdMq); var resultAgreed = mq.AgreedFromSourcedMo(cr, referral); } if (Global.errors == "") Assert.Pass(); else Assert.Fail(Global.errors); }
public MqResult AgreedFromSourcedMo(Credentials cr, Referral r) { try { TestReferral br = TestReferral.BuildReferralFromDataBaseData(r.ReferralInfo.IdMq); MqResult x = client.AgreedFromSourcedMo(cr, r); br.UpdateTestReferral(r, cr.Organization); if (br != TestReferral.BuildReferralFromDataBaseData(x.IdMq)) { Global.errors1.Add("Несовпадение"); Global.errors1.AddRange(Global.errors2); } return(x); } catch (System.ServiceModel.FaultException <MqTests.WebReference.MqFault> e) { getErrors(e.Detail); Global.errors1.Add("ЭКСЕПШН"); return(null); } }
public void FullAgreedFromSourcedMo() { using (MqServiceClient mq = new MqServiceClient()) { Credentials cr = new Credentials { Organization = idLpu, Token = guid }; Referral referral = (new SetData()).MinRegister(); var result = mq.Register(cr, referral); referral = (new SetData()).FullAgreedFromSourcedMo(result.IdMq); var resultAgreed = mq.AgreedFromSourcedMo(cr, referral); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }