public void TestGetDescription()
        {
            string test1   = "IGS";
            string test2   = "ISAR";
            string output1 = "The EWS movement helps doctors, nurses, and staff detect subtle signs of deterioration, assisting with early intervention. The solution allows you to see early warning scores right in the spot-check monitor, giving you all the information you need, at the point of care.\n   Detects deviations to spot subtle signs of deterioration\n   Informs responsible clinicians for early, effective intervention\n   https://www.philips.co.in/healthcare/product/HCNOCTN60/intellivue-guardian-solution-early-warning-scoring-solution";
            string output2 = "This solution offers you an all-in-one option that tackles both sides of the situation. It’s easy to implement, with reports developed using best practices gained from years of alarm management expertise. Our experienced clinical specialists analyze the information and provide education and training for your team to do the same. We help set up protocols tailored to your organization, using insights gleaned from your individual patient population.\n   Custom reports to identify trends in your information\n   End-to-end solution to provide actionable information\n   https://www.philips.co.in/healthcare/product/HCNOCTN60/intellivue-guardian-solution-early-warning-scoring-solution";

            Assert.AreEqual(output1, SolutionsAccessor.GetDescription(test1));
            Assert.AreEqual(output2, SolutionsAccessor.GetDescription(test2));
        }
Exemple #2
0
        private static void ShowSolution(string type)
        {
            Bot.PrintLine("Available solutions of the type '{0}' are mentioned below:", type);
            string allSolutions = SolutionsAccessor.GetSolution(type);

            Bot.PrintData(allSolutions);
            allSolutions = allSolutions.ToLower();
            string solnNameSentence = Bot.Prompt("Which solution of above are you interested to know more about?");
            string solnName         = Logic.ExtractKeyword(allSolutions, solnNameSentence);

            while (true)
            {
                while (!allSolutions.Contains(solnName))
                {
                    solnNameSentence = Bot.Prompt(
                        "I'm sorry, We don't have a solution in that name. Please choose one of the above solutions to display it's description.");
                    solnName = Logic.ExtractKeyword(allSolutions, solnNameSentence);
                }
                Bot.PrintLine("The solution description is :");
                Bot.PrintData(SolutionsAccessor.GetDescription(solnName));
                string addcartSolution = Bot.Prompt("Do you want to Select this solution");
                if (addcartSolution.Contains("yes"))
                {
                    cart.Solutions.Add(type);
                    Bot.PrintLine("The solution {0} is now added to your cart", type);
                }
                solnNameSentence = Bot.Prompt("Do you want to look for more solutions of the type '{0}' ? Mention the solution you want to choose.", type);
                if (solnNameSentence.Contains("what") || solnNameSentence.Contains("show"))
                {
                    Bot.PrintData(allSolutions);
                    solnNameSentence = Bot.Prompt("Here you go, Choose one from the above solutions to know more.");
                }
                solnName = Logic.ExtractKeyword(allSolutions, solnNameSentence);
                if (solnNameSentence.Contains("no"))
                {
                    return;
                }
            }
        }