public virtual ApiChainResponseModel MapBOToModel( BOChain boChain) { var model = new ApiChainResponseModel(); model.SetProperties(boChain.Id, boChain.ChainStatusId, boChain.ExternalId, boChain.Name, boChain.TeamId); return(model); }
public void MapResponseToRequest() { var mapper = new ApiChainModelMapper(); var model = new ApiChainResponseModel(); model.SetProperties(1, 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), "A", 1); ApiChainRequestModel response = mapper.MapResponseToRequest(model); response.ChainStatusId.Should().Be(1); response.ExternalId.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da")); response.Name.Should().Be("A"); response.TeamId.Should().Be(1); }