Esempio n. 1
0
        public void ConvertToModelListTest()
        {
            CompanyProvider        target   = new CompanyProvider(); // TODO: Initialize to an appropriate value
            List <baseCompanyView> itemlist = new List <baseCompanyView>();

            itemlist.Add(_baseCompanyView);
            itemlist.Add(_baseCompanyView);

            List <Company> expected = new List <Company>();

            expected.Add(_Company);
            expected.Add(_Company);
            List <Company> actual;

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