Esempio n. 1
0
        public void MapModelToBO()
        {
            var mapper = new BOLTransactionStatuMapper();
            ApiTransactionStatuRequestModel model = new ApiTransactionStatuRequestModel();

            model.SetProperties("A");
            BOTransactionStatu response = mapper.MapModelToBO(1, model);

            response.Name.Should().Be("A");
        }
Esempio n. 2
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");
        }
Esempio n. 3
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");
        }
Esempio n. 4
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");
        }
Esempio n. 5
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);
        }