Example #1
0
        public void InputIntoDetailAreaAsBelow(Table table)
        {
            try
            {
                Dictionary <string, InputElementType> elementType = new Dictionary <string, InputElementType>();
                elementType.Add("Pendenz Typ", InputElementType.Dropdown);
                //elementType.Add("Betreff", InputElementType.Textbox);
                elementType.Add("Beschreibung", InputElementType.Textarea);
                elementType.Add("Empfänger", InputElementType.GridDropdown);
                elementType.Add("Fällig", InputElementType.Datebox);

                Dictionary <string, string> screenMapping = new Dictionary <string, string>();
                screenMapping.Add("Pendenz Typ", "pendenzTyp");
                screenMapping.Add("Betreff", "betreff");
                screenMapping.Add("Beschreibung", "beschreibung");
                screenMapping.Add("Empfänger", "empfanger");
                screenMapping.Add("Fällig", "fallig");

                TestDataManager.InputTableData(new string[] { XPathPendenzen.TaskDetailFields1 }, table, elementType, screenMapping);
                Dictionary <string, string> fieldMapping = new Dictionary <string, string>();
                fieldMapping.Add("Betreff", "Subject");
                fieldMapping.Add("Beschreibung", "TaskDescription");
                fieldMapping.Add("Fällig", "ExpirationDate");

                TestDataManager.AddToTempEntities <XTask>(table, fieldMapping: fieldMapping);
            }
            catch (Exception)
            {
                Cleanup();
                throw;
            }
        }
Example #2
0
        public void WhenCallAPICreateUpdateTaskInCreatePendenzenWithInputDataAsBelow(Table table)
        {
            try
            {
                Dictionary <string, string> idFieldMapping = new Dictionary <string, string>();
                idFieldMapping.Add("empfangerId", "UserID");
                idFieldMapping.Add("falltrager", "BaPersonID");
                idFieldMapping.Add("leistung", "FaLeistungID");
                idFieldMapping.Add("PersonId", "BaPersonID");
                var insertCondition = TestDataManager.CreateSetWithLookup <CreateUpdateQuery>(table, idFieldMapping: idFieldMapping).First();
                TestDataManager.CallApiPostReturnObject <CreateUpdateQuery, bool>(Url.CreateUpdateTask, insertCondition);

                Dictionary <string, string> fieldMapping = new Dictionary <string, string>();
                fieldMapping.Add("status", "TaskStatusCode");
                fieldMapping.Add("pendenzTyp", "TaskTypeCode");
                fieldMapping.Add("betreff", "Subject");
                fieldMapping.Add("beschreibung", "TaskDescription");
                fieldMapping.Add("empfangerId", "ReceiverID");
                fieldMapping.Add("falltrager", "FaFallID");
                fieldMapping.Add("leistung", "FaLeistungID");
                fieldMapping.Add("PersonId", "BaPersonID");
                fieldMapping.Add("antwort", "ResponseText");
                Dictionary <string, string> xtaskIdFieldMapping = new Dictionary <string, string>();
                xtaskIdFieldMapping.Add("SenderID", "UserID");
                xtaskIdFieldMapping.Add("ReceiverID", "UserID");
                xtaskIdFieldMapping.Add("FaFallID", "BaPersonID");
                TestDataManager.AddToTempEntities <XTask>(table, fieldMapping: fieldMapping, idFieldMapping: xtaskIdFieldMapping);
            }
            catch (Exception)
            {
                Cleanup();
                throw;
            }
        }