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

            entity.SetProperties(1, "A");

            BOEventStatus response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemple #2
0
        public void MapBOToEF()
        {
            var mapper = new DALEventStatusMapper();
            var bo     = new BOEventStatus();

            bo.SetProperties(1, "A");

            EventStatus response = mapper.MapBOToEF(bo);

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

            entity.SetProperties(1, "A");

            List <BOEventStatus> response = mapper.MapEFToBO(new List <EventStatus>()
            {
                entity
            });

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