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

            entity.SetProperties(1, 1, 1);

            BOOtherTransport response = mapper.MapEFToBO(entity);

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Пример #2
0
        public void MapEFToBOList()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport entity = new OtherTransport();

            entity.SetProperties(1, 1, 1);

            List <BOOtherTransport> response = mapper.MapEFToBO(new List <OtherTransport>()
            {
                entity
            });

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