public virtual ApiVProductAndDescriptionResponseModel MapBOToModel( BOVProductAndDescription boVProductAndDescription) { var model = new ApiVProductAndDescriptionResponseModel(); model.SetProperties(boVProductAndDescription.CultureID, boVProductAndDescription.Description, boVProductAndDescription.Name, boVProductAndDescription.ProductID, boVProductAndDescription.ProductModel); return(model); }
public void MapResponseToRequest() { var mapper = new ApiVProductAndDescriptionModelMapper(); var model = new ApiVProductAndDescriptionResponseModel(); model.SetProperties("A", "A", "A", 1, "A"); ApiVProductAndDescriptionRequestModel response = mapper.MapResponseToRequest(model); response.Description.Should().Be("A"); response.Name.Should().Be("A"); response.ProductID.Should().Be(1); response.ProductModel.Should().Be("A"); }