public void MapBOToModelList() { var mapper = new BOLChannelMapper(); BOChannel bo = new BOChannel(); bo.SetProperties("A", BitConverter.GetBytes(1), "A", "A", "A", "A", "A"); List <ApiChannelResponseModel> response = mapper.MapBOToModel(new List <BOChannel>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLChannelMapper(); BOChannel bo = new BOChannel(); bo.SetProperties("A", BitConverter.GetBytes(1), "A", "A", "A", "A", "A"); ApiChannelResponseModel response = mapper.MapBOToModel(bo); response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1)); response.Id.Should().Be("A"); 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"); }