public virtual ApiCustomerServerRequestModel MapServerResponseToRequest( ApiCustomerServerResponseModel response) { var request = new ApiCustomerServerRequestModel(); request.SetProperties( response.Email, response.FirstName, response.LastName, response.Phone); return(request); }
public void MapModelToEntity() { var mapper = new DALCustomerMapper(); ApiCustomerServerRequestModel model = new ApiCustomerServerRequestModel(); model.SetProperties("A", "A", "A", "A"); Customer response = mapper.MapModelToEntity(1, model); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.LastName.Should().Be("A"); response.Phone.Should().Be("A"); }