Ejemplo n.º 1
0
        public void MapEFToBO()
        {
            var         mapper = new DALPaymentTypeMapper();
            PaymentType entity = new PaymentType();

            entity.SetProperties(1, "A");

            BOPaymentType response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Ejemplo n.º 2
0
        public void MapBOToEF()
        {
            var mapper = new DALPaymentTypeMapper();
            var bo     = new BOPaymentType();

            bo.SetProperties(1, "A");

            PaymentType response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Ejemplo n.º 3
0
        public void MapEFToBOList()
        {
            var         mapper = new DALPaymentTypeMapper();
            PaymentType entity = new PaymentType();

            entity.SetProperties(1, "A");

            List <BOPaymentType> response = mapper.MapEFToBO(new List <PaymentType>()
            {
                entity
            });

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