// GET: ExpectedResult/Create
        public ActionResult Create()
        {
            ViewBag.Tests = new SelectList(_dbTestRepository.GetData(), "Id", "Name");
            ViewBag.ExpectedResultTypes = new SelectList(_dbExpectedResultTypeRepository.GetData(), "Id", "Name");
            ViewBag.AssertTypes         = new SelectList(_dbAssertTypeRepository.GetData(), "Id", "Name");

            return(View());
        }
예제 #2
0
 public IQueryable <ExpectedResultType> GetData()
 {
     return(_dbRepository.GetData().AsQueryable());
 }