Ejemplo n.º 1
0
        public void GivenQuestionId_WhenItIsValid_ThenDisplayCorrectQuestion()
        {
            string Actual   = "Do you want a monitor with cable or cableless?";
            string expected = _question.GetById(2).question;

            Assert.AreEqual(Actual, expected);
        }
Ejemplo n.º 2
0
        public void GivenMonitoId_WhenItIsValid_ThenGiveCorrectMonitorName()
        {
            string Actual   = "Avalon CL";
            string expected = _monitor.GetById(1).monitor_name;

            Assert.AreEqual(Actual, expected);
        }
        public string Get()
        {
            string ques1;
            var    QuesRow = _question.GetById(1);

            ques1 = QuesRow.question + Environment.NewLine;
            var list = QuesRow.OptionsTbls.ToList();

            foreach (OptionsTbl opt in list)
            {
                ques1 += opt.option_id + ".  " + opt.option + "\n";
            }
            return(ques1);
        }
        public string MonitorFetch(OptionsTbl o)
        {
            var m       = _option.FindWhere(o.question_id, o.option_id);
            var monitor = _monitor.GetById(m.monitor_id);

            return(monitor.monitor_name);
        }
Ejemplo n.º 5
0
 public void GivenQuestionId_WhenOptionRepoGetById_ThenNotImplementedException()
 {
     var expected = _option.GetById(1);
 }