public virtual ApiPostTypesResponseModel MapBOToModel( BOPostTypes boPostTypes) { var model = new ApiPostTypesResponseModel(); model.SetProperties(boPostTypes.Id, boPostTypes.Type); return(model); }
public void MapResponseToRequest() { var mapper = new ApiPostTypesModelMapper(); var model = new ApiPostTypesResponseModel(); model.SetProperties(1, "A"); ApiPostTypesRequestModel response = mapper.MapResponseToRequest(model); response.Type.Should().Be("A"); }