Exemple #1
0
        public void MapModelToBO()
        {
            var mapper = new BOLTransactionStatusMapper();
            ApiTransactionStatusRequestModel model = new ApiTransactionStatusRequestModel();

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

            response.Name.Should().Be("A");
        }
Exemple #2
0
        public void MapBOToModel()
        {
            var mapper             = new BOLTransactionStatusMapper();
            BOTransactionStatus bo = new BOTransactionStatus();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
Exemple #3
0
        public void MapBOToModelList()
        {
            var mapper             = new BOLTransactionStatusMapper();
            BOTransactionStatus bo = new BOTransactionStatus();

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

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