Example #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");
        }
Example #2
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);
        }