Esempio n. 1
0
        public virtual ApiPaymentTypeResponseModel MapBOToModel(
            BOPaymentType boPaymentType)
        {
            var model = new ApiPaymentTypeResponseModel();

            model.SetProperties(boPaymentType.Id, boPaymentType.Name);

            return(model);
        }
        public void MapResponseToRequest()
        {
            var mapper = new ApiPaymentTypeModelMapper();
            var model  = new ApiPaymentTypeResponseModel();

            model.SetProperties(1, "A");
            ApiPaymentTypeRequestModel response = mapper.MapResponseToRequest(model);

            response.Name.Should().Be("A");
        }