Exemple #1
0
        public void MapEFToBO()
        {
            var      mapper = new DALFileTypeMapper();
            FileType entity = new FileType();

            entity.SetProperties(1, "A");

            BOFileType response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemple #2
0
        public void MapEFToBOList()
        {
            var      mapper = new DALFileTypeMapper();
            FileType entity = new FileType();

            entity.SetProperties(1, "A");

            List <BOFileType> response = mapper.MapEFToBO(new List <FileType>()
            {
                entity
            });

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