public void MinCancellation_AfterAgreedSourced() { using (TestMqServiceClient mq = new TestMqServiceClient()) { 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 res2 = mq.AgreedFromSourcedMo(cr, referral); referral = (new SetData()).MinCancellation(result.IdMq); var resultCancel = mq.Cancellation(cr, referral); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }
public void MinAgreedFromSourcedMo_Agreed() { using (TestMqServiceClient mq = new TestMqServiceClient()) { 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 void FullAgreedFromSourcedMo_NotAgreed() { using (TestMqServiceClient mq = new TestMqServiceClient()) { 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); referral.EventsInfo.Source.IsReferralReviewed = false; var resultAgreed = mq.AgreedFromSourcedMo(cr, referral); } if (Global.errors == "") { Assert.Pass(); } else { Assert.Fail(Global.errors); } }