예제 #1
0
        public void MapBOToModel()
        {
            var           mapper = new BOLPaymentTypeMapper();
            BOPaymentType bo     = new BOPaymentType();

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

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
예제 #2
0
        public void MapBOToModelList()
        {
            var           mapper = new BOLPaymentTypeMapper();
            BOPaymentType bo     = new BOPaymentType();

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

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