public virtual ApiTagSetResponseModel MapBOToModel( BOTagSet boTagSet) { var model = new ApiTagSetResponseModel(); model.SetProperties(boTagSet.Id, boTagSet.DataVersion, boTagSet.JSON, boTagSet.Name, boTagSet.SortOrder); return(model); }
public void MapResponseToRequest() { var mapper = new ApiTagSetModelMapper(); var model = new ApiTagSetResponseModel(); model.SetProperties("A", BitConverter.GetBytes(1), "A", "A", 1); ApiTagSetRequestModel response = mapper.MapResponseToRequest(model); response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1)); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.SortOrder.Should().Be(1); }