public void ThenTheBelowResultShouldBeRetrievedWithReferenceRangeID_(Table table)
        {
            ReferenceRangeDataFormatter newTable = new ReferenceRangeDataFormatter();

            newTable.FillReferenceRangeId("Data Value", table);
            ThenTheBelowResultShouldBeRetrieved_(table);
        }
        public void ThenISeeTheReferenceRangeIdsInTheReferenceRangeTable_(Table table)
        {
            ReferenceRangeDataFormatter newTable = new ReferenceRangeDataFormatter();

            newTable.FillReferenceRangeId("ReferenceRangeID", table);
            StringBuilder sb = new StringBuilder();
            IEnumerable <ReferenceRangesData> ReferenceRangeData = table.CreateSet <ReferenceRangesData>();
            List <ReferenceRangesData>        dataList           = (List <ReferenceRangesData>)ReferenceRangeData;
            List <string> FailedItems = new List <string>();

            if (!BP_ReferenceRangesUtilities.VerifyReferenceRangeIds(dataList, out FailedItems))
            {
                ScenarioContext.Current["ActResult"] = "Failed";
                foreach (string item in FailedItems)
                {
                    sb.Append(item);
                    sb.Append(",");
                    ScenarioContext.Current["Comments"] = "Following Items cannot be verified" + sb;
                }
            }
            else
            {
                sb.Append("Reference Range IDs");
                sb.Append("\r\n");
                foreach (var data in dataList)
                {
                    sb.Append(" - ");
                    sb.Append(data.ReferenceRangeID);
                    //sb.Append(FeatureContext.Current[data.ReferenceRangeID].ToString());
                    sb.Append("\r\n");
                }
                ScenarioContext.Current["Comments"] = sb;
            }
        }
Exemple #3
0
        public void ThenIVerifyBelowReferenceRangeCRFTableQuestionsDataInTheCRF_(string tableName, Table table)
        {
            ReferenceRangeDataFormatter newTable = new ReferenceRangeDataFormatter();

            newTable.FillReferenceRangeId("AnswerValue", table);
            ThenIVerifyBelowAutobuildTableQuestionsDataInTheCRF_(tableName, table);
        }
        public void WhenIClickOnIconForTheReferenceRangeInReferenceRangesPage_(string action, string rrID)
        {
            ReferenceRangeDataFormatter RRFormatter = new ReferenceRangeDataFormatter();
            string FormattedID = RRFormatter.FillRRID(rrID);

            if (!BP_ReferenceRangesUtilities.GetIConFromRowTableByRRIDandClickAction(action, FormattedID))
            {
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }