Esempio n. 1
0
        public void ConvertToViewListTest()
        {
            ProjectProvider target   = new ProjectProvider();
            List <Project>  itemlist = new List <Project>();

            itemlist.Add(_Project);
            itemlist.Add(_Project);
            List <baseProjectView> expected = new List <baseProjectView>();

            expected.Add(_baseProjectView);
            expected.Add(_baseProjectView);
            List <baseProjectView> actual;

            actual = target.ConvertToViewList(itemlist);
            Assert.AreEqual(expected.Count, actual.Count);
            CompareViewObject(expected[0], actual[0]);
            CompareViewObject(expected[1], actual[1]);
        }