Example #1
0
        public void MapBOToModelList()
        {
            var           mapper = new BOLTransactionMapper();
            BOTransaction bo     = new BOTransaction();

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

            response.Count.Should().Be(1);
        }
Example #2
0
        public void MapBOToModel()
        {
            var           mapper = new BOLTransactionMapper();
            BOTransaction bo     = new BOTransaction();

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

            response.Amount.Should().Be(1m);
            response.GatewayConfirmationNumber.Should().Be("A");
            response.Id.Should().Be(1);
            response.TransactionStatusId.Should().Be(1);
        }