예제 #1
0
        public void MapEFToBO()
        {
            var mapper = new DALTransactionStatuMapper();
            TransactionStatu entity = new TransactionStatu();

            entity.SetProperties(1, "A");

            BOTransactionStatu response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
예제 #2
0
        public void MapBOToEF()
        {
            var mapper = new DALTransactionStatuMapper();
            var bo     = new BOTransactionStatu();

            bo.SetProperties(1, "A");

            TransactionStatu response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
예제 #3
0
        public void MapEFToBOList()
        {
            var mapper = new DALTransactionStatuMapper();
            TransactionStatu entity = new TransactionStatu();

            entity.SetProperties(1, "A");

            List <BOTransactionStatu> response = mapper.MapEFToBO(new List <TransactionStatu>()
            {
                entity
            });

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