Пример #1
0
        public void TeachersListTest_Return_0209School_Plus_TCDSB_top_200_Teachers()
        {
            //Arrange
            string action = "TeacherList";


            ParametersForPositionList parameterT = new ParametersForPositionList()
            {
                Operate      = "List",
                UserID       = "mif",
                SchoolYear   = "20192020",
                SchoolCode   = "0209",
                SearchValue1 = "K"
            };

            var testDDLControl = new System.Web.UI.WebControls.DropDownList();

            // Act
            string expect         = "Kurnik, Cassandra";
            int    expect2        = 202;
            string intitalValue   = "00045299"; // "kurnikc";
            object datasourceList = RequestPostingExe.TeachersList(parameterT);

            AssemblingList.SetLists(testDDLControl, datasourceList, "CPNum", "TeacherName", intitalValue);
            string result  = testDDLControl.SelectedItem.Text;
            int    result2 = testDDLControl.Items.Count;

            // Assert
            Assert.AreEqual(expect, result, $"Teacher List From School Select Value  { result}");
            Assert.AreEqual(expect2, result2, $"DD List Totle Count Value  { result2}");
        }
Пример #2
0
        public List <TeachersListByCategory> TeachersListTest(object parameter)
        {
            List <TeachersListByCategory> result = RequestPostingExe.TeachersList(parameter);

            return(result);
            // TODO: add assertions to method RequestPostingExeTest.TeachersListTest(Object)
        }