public virtual ApiCountryRequirementResponseModel MapBOToModel( BOCountryRequirement boCountryRequirement) { var model = new ApiCountryRequirementResponseModel(); model.SetProperties(boCountryRequirement.Id, boCountryRequirement.CountryId, boCountryRequirement.Details); return(model); }
public void MapResponseToRequest() { var mapper = new ApiCountryRequirementModelMapper(); var model = new ApiCountryRequirementResponseModel(); model.SetProperties(1, 1, "A"); ApiCountryRequirementRequestModel response = mapper.MapResponseToRequest(model); response.CountryId.Should().Be(1); response.Details.Should().Be("A"); }