コード例 #1
0
        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);
        }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
        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);
            }
        }