示例#1
0
        public void GetQueueInfo_TargetLpu()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                SetUp();
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options options = new Options
                {
                    Target = new ReferralTarget {
                        Lpu = OptionData.options.Target.Lpu
                    }
                };

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
        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);
        }
示例#3
0
        public void GetQueueInfo_ProfileMedService()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                SetUp();
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options options = new Options
                {
                    ReferralInfo = new ReferralInfo
                    {
                        ProfileMedService = OptionData.options.ReferralInfo.ProfileMedService
                    }
                };

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#4
0
        public void GetQueueInfo_Empty()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options options = new Options();

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#5
0
        public void GetQueueInfo_DateReport()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                SetUp();
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options options = new Options { DateReport = OptionData.options.DateReport };

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#6
0
        public void GetQueueInfo_Empty()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options options = new Options();

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
        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);
            }
        }
示例#8
0
        public void GetQueueInfo_Full()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                SetUp();
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options options = new Options
                {
                    DateReport = OptionData.options.DateReport,
                    Target = new ReferralTarget { Lpu = OptionData.options.Target.Lpu },
                    ReferralInfo = new ReferralInfo
                    {
                        ProfileMedService = OptionData.options.ReferralInfo.ProfileMedService
                    }
                };

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }
示例#9
0
        public void GetQueueInfo_DateReport()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                SetUp();
                Credentials cr = new Credentials {
                    Organization = idLpu, Token = guid
                };
                Options options = new Options {
                    DateReport = OptionData.options.DateReport
                };

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
示例#10
0
        public void GetQueueInfo_TargetLpu()
        {
            using (MqServiceClient mq = new MqServiceClient())
            {
                SetUp();
                Credentials cr = new Credentials { Organization = idLpu, Token = guid };
                Options options = new Options
                {
                    Target = new ReferralTarget { Lpu = OptionData.options.Target.Lpu }
                };

                var result = mq.GetQueueInfo(cr, options);
            }

            if (Global.errors == "")
                Assert.Pass();
            else
                Assert.Fail(Global.errors);
        }