Пример #1
0
        public void MapEFToBO()
        {
            var     mapper = new DALCountryMapper();
            Country entity = new Country();

            entity.SetProperties(1, "A");

            BOCountry response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Пример #2
0
        public void MapEFToBOList()
        {
            var     mapper = new DALCountryMapper();
            Country entity = new Country();

            entity.SetProperties(1, "A");

            List <BOCountry> response = mapper.MapEFToBO(new List <Country>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }