public virtual ApiVersionInfoResponseModel MapBOToModel( BOVersionInfo boVersionInfo) { var model = new ApiVersionInfoResponseModel(); model.SetProperties(boVersionInfo.Version, boVersionInfo.AppliedOn, boVersionInfo.Description); return(model); }
public void MapResponseToRequest() { var mapper = new ApiVersionInfoModelMapper(); var model = new ApiVersionInfoResponseModel(); model.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A"); ApiVersionInfoRequestModel response = mapper.MapResponseToRequest(model); response.AppliedOn.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Description.Should().Be("A"); }