Exemple #1
0
        public void MapBOToModel()
        {
            var mapper            = new BOLTransactionStatuMapper();
            BOTransactionStatu bo = new BOTransactionStatu();

            bo.SetProperties(1, "A");
            ApiTransactionStatuResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemple #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");
        }
Exemple #3
0
        public void MapBOToModelList()
        {
            var mapper            = new BOLTransactionStatuMapper();
            BOTransactionStatu bo = new BOTransactionStatu();

            bo.SetProperties(1, "A");
            List <ApiTransactionStatuResponseModel> response = mapper.MapBOToModel(new List <BOTransactionStatu>()
            {
                { bo }
            });

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