Beispiel #1
0
        public static void PerformCallbackArchivedGC()
        {
            var wpList   = Ren.GetWorkitemNameIdOneHandlerInVector();
            var wp       = wpList.FirstOrDefault(wpp => String.Compare(wpp.Item3, "archiveTask", StringComparison.CurrentCultureIgnoreCase) == 0);
            var response = Ren.PostWorkitemRequest("Archived(GC) start", GlobalContext.LocationDict["WorkitemStart"], wp.Item1, wp.Item2, null);

            response = Ren.PostWorkitemRequest("Archived(GC) complete", GlobalContext.LocationDict["WorkitemComplete"], wp.Item1, wp.Item2, null);
        }
Beispiel #2
0
        public static void PerformCallbackPaid()
        {
            var wpList   = Ren.GetWorkitemNameIdOneHandlerInVector();
            var wp       = wpList[0];
            var response = Ren.PostWorkitemRequest("Pay start", GlobalContext.LocationDict["WorkitemStart"], wp.Item1, wp.Item2, null);

            response = Ren.PostWorkitemRequest("Pay complete", GlobalContext.LocationDict["WorkitemComplete"], wp.Item1, wp.Item2, null);
        }
Beispiel #3
0
        public static void PerformCallbackUpdateDeliTimeKO()
        {
            // 这里会有2个工作项:updateDeliTimeTask和Archived
            var wpList   = Ren.GetWorkitemNameIdOneHandlerInVector();
            var wp       = wpList.FirstOrDefault(wpp => String.Compare(wpp.Item3, "updateDeliTimeTask", StringComparison.CurrentCultureIgnoreCase) == 0);
            var response = Ren.PostWorkitemRequest("UpdateDeliTime start", GlobalContext.LocationDict["WorkitemStart"], wp.Item1, wp.Item2, null);

            response = Ren.PostWorkitemRequest("UpdateDeliTime complete", GlobalContext.LocationDict["WorkitemComplete"], wp.Item1, wp.Item2, null);
        }
Beispiel #4
0
        public static void PerformCallbackDelivered()
        {
            var wpList   = Ren.GetWorkitemNameIdOneHandlerInVector();
            var wp       = wpList[0];
            var payload  = "{\"passed\":1}";
            var response = Ren.PostWorkitemRequest("Delivere start", GlobalContext.LocationDict["WorkitemStart"], wp.Item1, wp.Item2, null);

            response = Ren.PostWorkitemRequest("Delivere complete", GlobalContext.LocationDict["WorkitemComplete"], wp.Item1, wp.Item2, payload);
        }