Example #1
0
        public void ConvertToModelListTest()
        {
            ProjectProvider        target   = new ProjectProvider();
            List <baseProjectView> itemlist = new List <baseProjectView>();

            itemlist.Add(_baseProjectView);
            itemlist.Add(_baseProjectView);
            List <Project> expected = new List <Project>();

            expected.Add(_Project);
            expected.Add(_Project);
            List <Project> actual;

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