public virtual ApiPaymentTypeServerRequestModel MapServerResponseToRequest( ApiPaymentTypeServerResponseModel response) { var request = new ApiPaymentTypeServerRequestModel(); request.SetProperties( response.Name); return(request); }
public void MapModelToEntity() { var mapper = new DALPaymentTypeMapper(); ApiPaymentTypeServerRequestModel model = new ApiPaymentTypeServerRequestModel(); model.SetProperties("A"); PaymentType response = mapper.MapModelToEntity(1, model); response.Name.Should().Be("A"); }