Esempio n. 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);
            }
        }
Esempio n. 2
0
        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);
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
            }
        }
Esempio n. 7
0
        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);
            }
        }
Esempio n. 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);
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
        }