Exemplo n.º 1
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;
            }
        }
Exemplo n.º 2
0
        public void ThenTheReceivedRightsShouldBe(Table table)
        {
            var rightsReceived = _result.Result.ToList();

            rightsReceived.ShouldNotBeNull();
            rightsReceived.ShouldNotBeEmpty();

            var expected = _testDataManager.CreateSetWithLookup <Kiss4UserRight>(table).ToList();

            rightsReceived.ShouldBePartially(expected, table.Header);
        }
Exemplo n.º 3
0
 public void WhenCallAPISearchPendenzenWithInputDataAsBelow(Table table)
 {
     try
     {
         var searchCondition = TestDataManager.CreateSetWithLookup <SearchPendenzenQuery>(table).First();
         TestDataManager.CallApiPostReturnList <SearchPendenzenQuery, TablePendenzenItem>(Url.SearchPendenzen, searchCondition);
     }
     catch (Exception)
     {
         Cleanup();
         throw;
     }
 }