Ejemplo n.º 1
0
        public void GetAllRequestorTest()
        {
            RequestorCollection tempCol = new RequestorCollection();

            //Create a new Category, insert it into the database, and then insert it into the Category Collection.
            for (int x = 0; x < 10; x++)
            {
                Requestor temp = NewRequestor();
                InsertRequestorIntoDatabase(temp);
                tempCol.Add(temp);
            }

            //Get all Categorys...
            RequestorCollection tempCol2 = HelpdeskService.GetAllRequestor();
            foreach (Requestor temp in tempCol)
            {
                Assert.IsTrue(tempCol2.Contains(temp));
            }
        }
Ejemplo n.º 2
0
        public void GetAllRequestorTest()
        {
            RequestorCollection tempCol = new RequestorCollection();

            //Create a new Category, insert it into the database, and then insert it into the Category Collection.
            for (int x = 0; x < 10; x++)
            {
                Requestor temp = NewRequestor();
                InsertRequestorIntoDatabase(temp);
                tempCol.Add(temp);
            }

            //Get all Categorys...
            RequestorCollection tempCol2 = HelpdeskService.GetAllRequestor();

            foreach (Requestor temp in tempCol)
            {
                Assert.IsTrue(tempCol2.Contains(temp));
            }
        }