public void MapBOToModelList() { var mapper = new BOLLifecycleMapper(); BOLifecycle bo = new BOLifecycle(); bo.SetProperties("A", BitConverter.GetBytes(1), "A", "A"); List <ApiLifecycleResponseModel> response = mapper.MapBOToModel(new List <BOLifecycle>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLLifecycleMapper(); BOLifecycle bo = new BOLifecycle(); bo.SetProperties("A", BitConverter.GetBytes(1), "A", "A"); ApiLifecycleResponseModel response = mapper.MapBOToModel(bo); response.DataVersion.Should().BeEquivalentTo(BitConverter.GetBytes(1)); response.Id.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); }