public virtual ApiChannelResponseModel MapBOToModel( BOChannel boChannel) { var model = new ApiChannelResponseModel(); model.SetProperties(boChannel.Id, boChannel.DataVersion, boChannel.JSON, boChannel.LifecycleId, boChannel.Name, boChannel.ProjectId, boChannel.TenantTags); return(model); }
public void MapResponseToRequest() { var mapper = new ApiChannelModelMapper(); var model = new ApiChannelResponseModel(); model.SetProperties("A", BitConverter.GetBytes(1), "A", "A", "A", "A", "A"); ApiChannelRequestModel response = mapper.MapResponseToRequest(model); response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1)); response.JSON.Should().Be("A"); response.LifecycleId.Should().Be("A"); response.Name.Should().Be("A"); response.ProjectId.Should().Be("A"); response.TenantTags.Should().Be("A"); }