public virtual ApiDeploymentProcessResponseModel MapBOToModel( BODeploymentProcess boDeploymentProcess) { var model = new ApiDeploymentProcessResponseModel(); model.SetProperties(boDeploymentProcess.Id, boDeploymentProcess.IsFrozen, boDeploymentProcess.JSON, boDeploymentProcess.OwnerId, boDeploymentProcess.RelatedDocumentIds, boDeploymentProcess.Version); return(model); }
public void MapResponseToRequest() { var mapper = new ApiDeploymentProcessModelMapper(); var model = new ApiDeploymentProcessResponseModel(); model.SetProperties("A", true, "A", "A", "A", 1); ApiDeploymentProcessRequestModel response = mapper.MapResponseToRequest(model); response.IsFrozen.Should().Be(true); response.JSON.Should().Be("A"); response.OwnerId.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.Version.Should().Be(1); }