Esempio n. 1
0
        public void GetAllUsersFromSBK_02()
        {
            var config = new Config()
            {
                Name             = "internsbk",
                ApiUrl           = "https://testservice.MINKOMMUN.se/api/v2/services",
                ApiUserName      = "******",
                ApiKey           = "c0ff3c0f-fec0-ff3c-0ffe-c0ff3c0ff3c0f",
                ServiceShortName = "SBK_02",
                Actor            = "SBK"
            };

            var api = new AbouRestApi(config);


            DateTime FromDate = new DateTime(2016, 02, 27);
            DateTime ToDate   = new DateTime(2019, 12, 11);

            string[] States = new string[] { "Godkänd", "Inkommet" };
            bool     ExcludeCasesWithDiaryNumber = false;

            var users = new ConcurrentBag <string>();

            var res = api.GetByDateAndState(FromDate, ToDate, States, ExcludeCasesWithDiaryNumber);

            Parallel.ForEach(res, (u) =>
            {
                var r    = api.GetDetailed(u);
                var user = r.Signatures.First().UserIdentity;
                users.Add(user);
            });

            var f = string.Join(",", users.Distinct());
        }
Esempio n. 2
0
        public void GetByDateAndStat()
        {
            var config = Global.GetConfig;
            var api    = new AbouRestApi(config);


            DateTime FromDate = new DateTime(2019, 02, 27);
            DateTime ToDate   = new DateTime(2019, 12, 11);

            string[] States = new string[] { "Beslut" };
            bool     ExcludeCasesWithDiaryNumber = false;


            var res = api.GetByDateAndState(FromDate, ToDate, States, ExcludeCasesWithDiaryNumber);
        }
Esempio n. 3
0
        public void GetByDateAndStateDate()
        {
            var config = Global.GetConfig;
            var api    = new AbouRestApi(config);

            GetCaseData data = new GetCaseData(config)
            {
                FromDate = new DateTime(2019, 02, 27),
                ToDate   = new DateTime(2019, 12, 11),
                States   = new string[] { "Beslut" },
                ExcludeCasesWithDiaryNumber = false
            };

            var res = api.GetByDateAndState(data);
        }